Skip to content

Commit

Permalink
Normalize tag and owner to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvesterdamgaard committed Dec 2, 2024
1 parent 88db6aa commit a94e3ed
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Normalize variables to lowercase
id: vars
run: |
echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV # Convert owner to lowercase
echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV # Convert tag to lowercase
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/${{ env.OWNER }}/s3-mirror:${{ env.TAG }}
ghcr.io/${{ env.OWNER }}/s3-mirror:latest
ghcr.io/sylvesterdamgaard/s3-mirror:${{ env.TAG }}
ghcr.io/sylvesterdamgaard/s3-mirror:latest

0 comments on commit a94e3ed

Please sign in to comment.