File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish Patch Hunter
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ main ]
7+ tags : [ 'v*' ]
8+
9+ jobs :
10+ build-and-push :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ packages : write
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v3
21+
22+ - name : Log in to GitHub Container Registry
23+ uses : docker/login-action@v3
24+ with :
25+ registry : ghcr.io
26+ username : ${{ github.actor }}
27+ password : ${{ secrets.GITHUB_TOKEN }}
28+
29+ - name : Build and push multi-arch image
30+ uses : docker/build-push-action@v6
31+ with :
32+ context : .
33+ push : true
34+ platforms : linux/amd64,linux/arm64
35+ tags : |
36+ ghcr.io/${{ github.repository_owner }}/patch-hunter:latest
37+ ghcr.io/${{ github.repository_owner }}/patch-hunter:${{ github.ref_name }}
38+
You can’t perform that action at this time.
0 commit comments