File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed
Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches : ["your-branch"]
6+
7+ env :
8+ REGISTRY_IMAGE : ghcr.io/lurian/sample
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up QEMU
17+ uses : docker/setup-qemu-action@v3
18+
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v3
21+
22+ - name : Login to Docker Hub
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
30+ id : build
31+ uses : docker/build-push-action@v5
32+ with :
33+ platforms : linux/amd64,linux/arm64
34+ secrets : |
35+ "git_auth=${{ secrets.GIT_AUTH_CREDENTIALS }}"
36+ push : true
37+ tags : |
38+ ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
39+ ${{ env.REGISTRY_IMAGE }}:${{ github.sha }}
40+
41+ - name : Inspect image
42+ run : |
43+ docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
Original file line number Diff line number Diff line change 11name : rust-build
22
33env :
4- REGISTRY_IMAGE : lurian/sample
4+ REGISTRY_IMAGE : ghrc.io/ lurian/sample
55 IMAGE_TAG : latest
66
77on :
You can’t perform that action at this time.
0 commit comments