From 1a2971ae7bad3b68eeb7b5b9fd2af00709f1a159 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 8 Apr 2024 13:36:50 -0700 Subject: [PATCH] Update docker-build.yaml --- .github/workflows/docker-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 44c9c654b3..b3fa778a5f 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -46,14 +46,14 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # This configuration dynamically generates tags based on the branch, tag, commit, and custom suffix for lite version. tags: | type=ref,event=branch type=ref,event=tag type=sha,prefix=git- type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - latest=true + flavor: | + latest=${{ github.ref == 'refs/heads/main' }} - name: Build and push Docker image (latest) uses: docker/build-push-action@v5