Skip to content

Commit

Permalink
chore(docker workflow): fix lowercase + update to last vers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelak312 committed Dec 7, 2023
1 parent c9a5df5 commit aa8d0dd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -47,13 +47,16 @@ jobs:
echo "is_latest=false" >> $GITHUB_ENV
fi
- name: Lowercase Repository Name
run: echo "lowercase_repo=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Build and push image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ env.tag }}
${{ env.is_latest == 'true' && 'ghcr.io/${{ github.repository }}:latest' }}
ghcr.io/${{ env.lowercase_repo }}:${{ env.tag }}
${{ env.is_latest == 'true' && 'ghcr.io/${{ env.lowercase_repo }}:latest' }}
platforms: linux/amd64,linux/arm64

0 comments on commit aa8d0dd

Please sign in to comment.