Skip to content

Commit

Permalink
chore(docker workflow): revised repo name latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelak312 committed Dec 7, 2023
1 parent aa8d0dd commit c894e41
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Determine Tag Name
Expand Down Expand Up @@ -57,6 +60,6 @@ jobs:
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ env.lowercase_repo }}:${{ env.tag }}
${{ env.is_latest == 'true' && 'ghcr.io/${{ env.lowercase_repo }}:latest' }}
user/app:${{ env.tag }}
${{ env.is_latest == 'true' && 'user/app:latest' }}
platforms: linux/amd64,linux/arm64

0 comments on commit c894e41

Please sign in to comment.