Skip to content

Commit fdd7317

Browse files
committed
ci: Use SHA instead of 'latest' tag when not on main
Signed-off-by: Phoevos Kalemkeris <[email protected]>
1 parent 28a63bd commit fdd7317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
push: true
7272
tags: |
7373
${{ steps.meta.outputs.tags }}
74-
${{ matrix.image }}:latest
74+
${{ matrix.image }}:${{ github.ref == 'refs/heads/main' && 'latest' || github.sha }}
7575
labels: ${{ steps.meta.outputs.labels }}
7676
cache-from: type=local,src=/tmp/.buildx-cache
7777
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max

0 commit comments

Comments
 (0)