From 40b0cc1b312faff71e0cc36f73590bd8ceba6dbc Mon Sep 17 00:00:00 2001 From: Robert Shuford Date: Wed, 28 Feb 2024 16:55:59 -0500 Subject: [PATCH] feat: add latest tag for main branch builds --- .github/workflows/dockerhub.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index bf8840f6..ba469305 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -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 @@ -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 }}