Skip to content

Commit cc31a56

Browse files
committed
Updated the tags
1 parent ac8446a commit cc31a56

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,23 @@ jobs:
3838
${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }} # For DockerHub
3939
ghcr.io/${{ github.repository }} # For GHCR
4040
tags: |
41-
type=ref,event=branch
42-
# set test tag for develop branch
43-
type=raw,value=test,enable=${{ github.ref == 'refs/heads/develop' }}
41+
type=raw,value=develop,enable=${{ github.ref == 'refs/heads/develop' }}
42+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/develop' }}
4443
4544
# Build and push Docker image to Docker Hub
4645
- name: Build and push Docker image to Docker Hub
4746
uses: docker/build-push-action@v5
4847
with:
4948
context: .
5049
push: true
51-
tags: ${{ steps.meta.outputs.tags }}
52-
labels: ${{ steps.meta.outputs.labels }}
50+
tags: |
51+
${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }}:latest
5352
5453
# Build and push Docker image to GHCR
5554
- name: Build and push Docker image to GHCR
5655
uses: docker/build-push-action@v5
5756
with:
5857
context: .
5958
push: true
60-
tags: ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.tags }}
61-
labels: ${{ steps.meta.outputs.labels }}
59+
tags: |
60+
ghcr.io/${{ github.repository }}:develop

0 commit comments

Comments
 (0)