File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 required : true
99 type : string
1010
11- env :
12- REGISTRY : ghcr.io
13- IMAGE_NAME : ${{ github.repository }}
14-
1511jobs :
1612 build-and-push :
1713 runs-on : ubuntu-latest
@@ -27,19 +23,18 @@ jobs:
2723 uses : docker/setup-buildx-action@v3
2824
2925 - name : Log in to Container Registry
30- if : github.event_name != 'pull_request'
3126 uses : docker/login-action@v3.6.0
3227 with :
33- registry : ${{ env.REGISTRY }}
34- username : ${{ github.actor }}
28+ registry : ghcr.io
29+ username : serversidehannes
3530 password : ${{ secrets.GITHUB_TOKEN }}
3631
3732 - name : Build and push Docker image
3833 uses : docker/build-push-action@v6
3934 with :
4035 context : .
41- push : ${{ github.event_name != 'pull_request' }}
42- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} :${{ inputs.tag }}
36+ push : true
37+ tags : ghcr.io/serversidehannes/s3proxy-python :${{ inputs.tag }}
4338 cache-from : type=gha
4439 cache-to : type=gha,mode=max
4540 platforms : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments