File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1818 - name : Set up Docker Buildx
1919 uses : docker/setup-buildx-action@v3
2020
21+ - name : Generate Metadata
22+ id : meta
23+ uses : docker/metadata-action@v5
24+ with :
25+ images : ghcr.io/${{ github.repository }}
26+ tags : |
27+ type=semver,pattern={{version}}
28+
2129 - name : Build image
2230 uses : docker/build-push-action@v6
2331 env :
2634 context : .
2735 cache-from : type=gha
2836 cache-to : type=gha
29- tags : ci_test
37+ tags : ${{ steps.meta.outputs.tags }}
3038 load : true
3139
3240 - name : Login to GHCR
3745 username : ${{ github.actor }}
3846 password : ${{ secrets.GITHUB_TOKEN }}
3947
40- - name : Generate Metadata
41- id : meta
42- uses : docker/metadata-action@v5
43- with :
44- images : ghcr.io/${{ github.repository }}
45- tags : |
46- type=ref,event=tag
47- type=raw,value=latest
48-
4948 - name : Publish image
5049 if : ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
5150 uses : docker/build-push-action@v6
You can’t perform that action at this time.
0 commit comments