File tree Expand file tree Collapse file tree 2 files changed +25
-222
lines changed Expand file tree Collapse file tree 2 files changed +25
-222
lines changed Original file line number Diff line number Diff line change 11name : push on dockerhub
22on :
3- release :
4- types : [published]
3+ push :
4+ tags :
5+ - ' *'
56
67jobs :
78 docker :
8- runs-on : ubuntu-20.04
9+ runs-on : buildjet-2vcpu- ubuntu-2204
910 steps :
10- -
11- name : Checkout
12- uses : actions/checkout@v3
11+ - name : Checkout
12+ uses : actions/checkout@v4
1313 with :
14- ref : ${{ github.ref }} # Use the reference to the release
15- -
16- name : Set up QEMU
14+ ref : ${{ github.ref }}
15+ submodules : recursive
16+ - name : Setup Go Env
17+ uses : actions/setup-go@v4
18+ with :
19+ go-version : " 1.22"
20+
21+ - name : Set up QEMU
1722 uses : docker/setup-qemu-action@v3
18- -
19- name : Set up Docker Buildx
23+
24+ - name : Set up Docker Buildx
2025 uses : docker/setup-buildx-action@v3
21- -
22- name : Login to Docker Hub
26+
27+ - name : Login to Registry
2328 uses : docker/login-action@v3
2429 with :
2530 registry : ${{ secrets.DOCKER_REGISTRY }}
2631 username : ${{ secrets.DOCKER_USERNAME }}
2732 password : ${{ secrets.DOCKER_PASSWORD }}
2833 -
29- name : Build and push
30- uses : docker/build-push-action@v5
31- with :
32- context : .
33- platforms : linux/amd64,linux/arm64
34- push : true
35- tags : ' ${{ github.event.release.tag_name }} ' # Use the release tag as the image tag
34+ name : Build and push multi-arch image
35+ env :
36+ TAG : ${{ github.ref_name }}
37+ IMAGE_TAG : ${{ github.ref_name }}
38+ run : |
39+ echo "building multi-arch images with tag: $TAG"
40+ make build-push-multi-arch- image
You can’t perform that action at this time.
0 commit comments