File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 6
6
permissions :
7
7
contents : write
8
8
jobs :
9
- Publish :
10
- runs-on : ubuntu-latest
9
+ publish :
10
+ runs-on : ubuntu-22.04
11
11
strategy :
12
12
fail-fast : true
13
13
matrix :
14
14
arch :
15
15
- amd64
16
16
- arm64
17
17
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
-
27
18
- name : Setup QEMU
28
19
uses : docker/setup-qemu-action@v3
29
20
with :
30
21
platforms : all
31
-
22
+
32
23
- name : Setup Docker Buildx
33
24
uses : docker/setup-buildx-action@v3
34
25
with :
35
26
install : true
36
27
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
38
32
- name : Login to Docker Hub
39
33
uses : docker/login-action@v3
40
34
with :
41
35
username : ${{ secrets.DOCKER_USERNAME }}
42
36
password : ${{ secrets.DOCKER_PASSWORD }}
43
37
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/.
44
40
- name : Build and push
45
- id : meta
41
+ id : image
46
42
uses : docker/build-push-action@v5
47
43
with :
48
44
context : .
49
45
platforms : linux/${{ matrix.arch }}
46
+ target : image
50
47
push : true
51
48
tags : kcllang/kcl
You can’t perform that action at this time.
0 commit comments