Skip to content

Commit

Permalink
third way
Browse files Browse the repository at this point in the history
  • Loading branch information
LumePart committed Oct 26, 2024
1 parent efbf4be commit 5fdd657
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Convert repository name to lowercase
run: |
REPO_LC=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "REPO_LC=$REPO_LC" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -95,8 +100,8 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository@L }}:latest
ghcr.io/${{ github.repository@L }}:${{ github.event.release.tag_name }}
ghcr.io/${{ env.REPO_LC }}:latest
ghcr.io/${{ env.REPO_LC }}:${{ github.event.release.tag_name }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/386

0 comments on commit 5fdd657

Please sign in to comment.