File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Push Docker Image
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- master
7
+
6
8
jobs :
7
9
build-and-push :
8
10
strategy :
@@ -13,23 +15,20 @@ jobs:
13
15
# - latest
14
16
runs-on : ubuntu-latest
15
17
steps :
18
+ - name : Set up Docker Buildx
19
+ uses : docker/setup-buildx-action@v3
16
20
- name : Login to GHCR
17
21
uses : docker/login-action@v3
18
22
with :
19
23
registry : ghcr.io
20
- username : DFHack-Urist
24
+ username : ${{ github.actor }}
21
25
password : ${{ secrets.GITHUB_TOKEN }}
22
- # From https://github.com/docker/build-push-action#git-context
23
- # Setting up Docker Buildx with docker-container driver is required
24
- # at the moment to be able to use a subdirectory with Git context
25
- - name : Set up Docker Buildx
26
- uses : docker/setup-buildx-action@v3
27
26
- name : Build and push
28
27
uses : docker/build-push-action@v6
29
28
with :
30
29
context : " {{defaultContext}}:${{ matrix.IMAGE_TAG }}"
31
30
push : true
32
- tags : ghcr.io/ ${{ env.GHCR_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ matrix.IMAGE_TAG }}
31
+ tags : ${{ env.GHCR_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ matrix.IMAGE_TAG }}
33
32
env :
34
33
GHCR_NAMESPACE : dfhack
35
34
IMAGE_NAME : build-env
You can’t perform that action at this time.
0 commit comments