File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ tags :
7+ - ' v*'
8+
9+ permissions :
10+ contents : read
11+ packages : write
12+
13+ jobs :
14+ build-and-push :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Log in to GHCR
21+ uses : docker/login-action@v3
22+ with :
23+ registry : ghcr.io
24+ username : ${{ github.actor }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+
27+ - name : Extract Docker metadata
28+ id : meta
29+ uses : docker/metadata-action@v5
30+ with :
31+ images : ghcr.io/${{ github.repository }}
32+ tags : |
33+ type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
34+ type=match,pattern=v(\d+),group=1
35+ type=ref,event=tag
36+
37+ - name : Build and push
38+ uses : docker/build-push-action@v6
39+ with :
40+ context : .
41+ push : true
42+ tags : ${{ steps.meta.outputs.tags }}
43+ labels : ${{ steps.meta.outputs.labels }}
44+
45+
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ inputs:
1616 required : true
1717runs :
1818 using : docker
19- image : ./Dockerfile
19+ image : docker://ghcr.io/ton-studio/read-helm-values:v5
2020 args :
2121 - ${{ inputs.working-directory }}
2222 - ${{ inputs.values }}
You can’t perform that action at this time.
0 commit comments