Skip to content

Commit fff7431

Browse files
Fix Docker image tag to use lowercase
1 parent b7fd5bd commit fff7431

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
required: true
99
type: string
1010

11-
env:
12-
REGISTRY: ghcr.io
13-
IMAGE_NAME: ${{ github.repository }}
14-
1511
jobs:
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

0 commit comments

Comments
 (0)