Skip to content

Commit f222b5d

Browse files
committed
cccc
Signed-off-by: peefy <xpf6677@163.com>
1 parent 1b18aa6 commit f222b5d

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,43 @@ on:
66
permissions:
77
contents: write
88
jobs:
9-
Publish:
10-
runs-on: ubuntu-latest
9+
publish:
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
fail-fast: true
1313
matrix:
1414
arch:
1515
- amd64
1616
- arm64
1717
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 0
22-
- name: Set up Go
23-
uses: actions/setup-go@v5
24-
with:
25-
go-version: 1.21
26-
2718
- name: Setup QEMU
2819
uses: docker/setup-qemu-action@v3
2920
with:
3021
platforms: all
31-
22+
3223
- name: Setup Docker Buildx
3324
uses: docker/setup-buildx-action@v3
3425
with:
3526
install: true
3627

37-
# <--- Login, build and push image to Docker Hub --->
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
# Login, build and push image to Docker Hub
3832
- name: Login to Docker Hub
3933
uses: docker/login-action@v3
4034
with:
4135
username: ${{ secrets.DOCKER_USERNAME }}
4236
password: ${{ secrets.DOCKER_PASSWORD }}
4337

38+
# We ask Docker to use GitHub Action's native caching support to speed up
39+
# the build, per https://docs.docker.com/build/cache/backends/gha/.
4440
- name: Build and push
45-
id: meta
41+
id: image
4642
uses: docker/build-push-action@v5
4743
with:
4844
context: .
4945
platforms: linux/${{ matrix.arch }}
46+
target: image
5047
push: true
5148
tags: kcllang/kcl

0 commit comments

Comments
 (0)