Skip to content

Commit 1a9627c

Browse files
committed
fix(ci): release docker image
Signed-off-by: ashing <[email protected]>
1 parent 27f6faf commit 1a9627c

File tree

2 files changed

+24
-222
lines changed

2 files changed

+24
-222
lines changed

.github/workflows/push-docker.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
name: push on dockerhub
22
on:
3-
release:
4-
types: [published]
3+
push:
4+
tags:
5+
- '*'
56

67
jobs:
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+
submodules: recursive
15+
- name: Setup Go Env
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: "1.22"
19+
20+
- name: Set up QEMU
1721
uses: docker/setup-qemu-action@v3
18-
-
19-
name: Set up Docker Buildx
22+
23+
- name: Set up Docker Buildx
2024
uses: docker/setup-buildx-action@v3
21-
-
22-
name: Login to Docker Hub
25+
26+
- name: Login to Registry
2327
uses: docker/login-action@v3
2428
with:
2529
registry: ${{ secrets.DOCKER_REGISTRY }}
2630
username: ${{ secrets.DOCKER_USERNAME }}
2731
password: ${{ secrets.DOCKER_PASSWORD }}
2832
-
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
33+
name: Build and push multi-arch image
34+
env:
35+
TAG: ${{ github.ref_name }}
36+
IMAGE_TAG: ${{ github.ref_name }}
37+
run: |
38+
echo "building multi-arch images with tag: $TAG"
39+
make build-push-multi-arch-image

0 commit comments

Comments
 (0)