Skip to content

Commit 5d4e0b8

Browse files
committed
update docker image on new pushes to main
1 parent c703a91 commit 5d4e0b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish-image.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Build and publish container
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
branches: [main]
66

77
permissions:
88
contents: read
@@ -29,10 +29,10 @@ jobs:
2929
with:
3030
images: ghcr.io/${{ github.repository }}
3131
tags: |
32-
# Use the release tag (e.g., v1.2.3)
33-
type=semver,pattern={{version}}
34-
type=semver,pattern={{major}}.{{minor}}
35-
type=semver,pattern={{major}}
32+
# Auto-increment with date and commit SHA
33+
type=sha,prefix={{date 'YYYYMMDD-HHmm'}}-
34+
type=ref,event=branch,suffix=-{{sha}}
35+
latest
3636
labels: |
3737
org.opencontainers.image.title=Amp Code Review Agent
3838
org.opencontainers.image.description=Code review for GitHub powered by Amp

0 commit comments

Comments
 (0)