Skip to content

Commit

Permalink
feat: add latest tag for main branch builds (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertshuford authored Feb 28, 2024
1 parent cfdd525 commit b47d1d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand All @@ -34,5 +34,7 @@ jobs:
context: .
file: ./apps/coordinator/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit b47d1d9

Please sign in to comment.