fix(ci): Prevent duplicate Docker tags in GitHub Actions

- Add latest=false flavor to both backend and frontend jobs
- Fix confusion between latest and latest-frontend tags
- Ensure proper image separation in Docker registries
This commit is contained in:
Elisiário Couto
2025-09-10 01:11:38 +01:00
parent 84fe79b37b
commit 53e08e8e4b

View File

@@ -62,10 +62,12 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta backend - name: Docker meta backend
id: meta-backend id: meta-backend
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
flavor: |
latest=false
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
elisiariocouto/leggen elisiariocouto/leggen
@@ -106,10 +108,12 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta frontend - name: Docker meta frontend
id: meta-frontend id: meta-frontend
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
flavor: |
latest=false
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
elisiariocouto/leggen elisiariocouto/leggen