We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c703a91 commit 5d4e0b8Copy full SHA for 5d4e0b8
.github/workflows/publish-image.yml
@@ -1,8 +1,8 @@
1
name: Build and publish container
2
3
on:
4
- release:
5
- types: [published]
+ push:
+ branches: [main]
6
7
permissions:
8
contents: read
@@ -29,10 +29,10 @@ jobs:
29
with:
30
images: ghcr.io/${{ github.repository }}
31
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}}
+ # Auto-increment with date and commit SHA
+ type=sha,prefix={{date 'YYYYMMDD-HHmm'}}-
+ type=ref,event=branch,suffix=-{{sha}}
+ latest
36
labels: |
37
org.opencontainers.image.title=Amp Code Review Agent
38
org.opencontainers.image.description=Code review for GitHub powered by Amp
0 commit comments