Skip to content

Commit ff1e65c

Browse files
author
Scott Davidson
committed
Only tag images built on main as latest
1 parent 83103ac commit ff1e65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-build-push-web-container-on-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
images: ${{ env.REGISTRY_IMAGE }}
3939
tags: |
4040
type=raw,value=${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
41-
type=raw,value=${{ env.LATEST_TAG == 'true' && format('{0}:latest', env.REGISTRY_IMAGE) || '' }}
41+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
4242
4343
- name: Set up Docker Buildx
4444
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)