File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 55 branches : [main]
66 push :
77 branches : [main]
8+ tags : ['v*']
89
910jobs :
1011 build-and-push :
@@ -21,11 +22,18 @@ jobs:
2122 id : meta
2223 uses : docker/metadata-action@v5
2324 with :
24- images : ghcr.io/graphprotocol/hypergraph-server
25+ images : ghcr.io/${{ github.repository }}
26+ # TODO: Customize tagging behavior to our needs.
27+ tags : |
28+ type=ref,event=branch
29+ type=ref,event=pr
30+ type=semver,pattern={{version}}
31+ type=semver,pattern={{major}}.{{minor}}
32+ type=sha
2533
2634 - name : Login to ghcr.io
2735 uses : docker/login-action@v3
28- # if: ${{ github.event_name != 'pull_request' }}
36+ if : ${{ github.event_name != 'pull_request' }}
2937 with :
3038 registry : ghcr.io
3139 username : ${{ github.actor }}
3543 - name : Build and push
3644 uses : docker/build-push-action@v6
3745 with :
38- # push: ${{ github.event_name != 'pull_request' }}
46+ platforms : linux/amd64,linux/arm64
47+ push : ${{ github.event_name != 'pull_request' }}
3948 tags : ${{ steps.meta.outputs.tags }}
4049 labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments