Skip to content

Commit

Permalink
Updated the tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveenraj-K committed Oct 4, 2024
1 parent ac8446a commit cc31a56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,23 @@ jobs:
${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }} # For DockerHub
ghcr.io/${{ github.repository }} # For GHCR
tags: |
type=ref,event=branch
# set test tag for develop branch
type=raw,value=test,enable=${{ github.ref == 'refs/heads/develop' }}
type=raw,value=develop,enable=${{ github.ref == 'refs/heads/develop' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/develop' }}
# Build and push Docker image to Docker Hub
- name: Build and push Docker image to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }}:latest
# Build and push Docker image to GHCR
- name: Build and push Docker image to GHCR
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
ghcr.io/${{ github.repository }}:develop

0 comments on commit cc31a56

Please sign in to comment.