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 1
1
name : push on dockerhub
2
2
on :
3
- release :
4
- types : [published]
3
+ push :
4
+ tags :
5
+ - ' *'
5
6
6
7
jobs :
7
8
docker :
8
- runs-on : ubuntu-20.04
9
+ runs-on : buildjet-2vcpu- ubuntu-2204
9
10
steps :
10
- -
11
- name : Checkout
12
- uses : actions/checkout@v3
11
+ - name : Checkout
12
+ uses : actions/checkout@v4
13
13
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
17
22
uses : docker/setup-qemu-action@v3
18
- -
19
- name : Set up Docker Buildx
23
+
24
+ - name : Set up Docker Buildx
20
25
uses : docker/setup-buildx-action@v3
21
- -
22
- name : Login to Docker Hub
26
+
27
+ - name : Login to Registry
23
28
uses : docker/login-action@v3
24
29
with :
25
30
registry : ${{ secrets.DOCKER_REGISTRY }}
26
31
username : ${{ secrets.DOCKER_USERNAME }}
27
32
password : ${{ secrets.DOCKER_PASSWORD }}
28
33
-
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