Skip to content

Commit e732bc5

Browse files
authored
Do not tag Docker images as latest in PRs (#10)
1 parent 0992cdb commit e732bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
cache-to: type=inline
5050
tags: |
5151
${{ env.IMAGE_NAME }}:${{ env.VERSION }}
52-
${{ env.IMAGE_NAME }}:latest
52+
${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && format('{0}:latest', env.IMAGE_NAME) || '' }}
5353
platforms: linux/amd64,linux/arm64
5454

5555
env:

0 commit comments

Comments
 (0)