Skip to content

Commit e864bed

Browse files
authored
fix build (#18)
* fix build * fix buildx setup * remove setup-buildx in test * fix test * bug docker/buildx/issues/59
1 parent 9286b79 commit e864bed

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

.github/workflows/_fetch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"steps": [{
2020
"id": "step",
21-
"name": "get deno latest version",
21+
"name": "fetch deno latest version",
2222
"run": "echo deno_version=$(curl -Ls https://api.github.com/repos/denoland/deno/releases/latest | yq '.tag_name') >> ${{github.output}}"
2323
}]
2424
}

.github/workflows/_fetch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
deno_version: ${{steps.step.outputs.deno_version}}
1313
steps:
1414
- id: step
15-
name: get deno latest version
15+
name: fetch deno latest version
1616
run: echo deno_version=$(curl -Ls https://api.github.com/repos/denoland/deno/releases/latest | yq '.tag_name') >> ${{github.output}}

.github/workflows/_push.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
"name": "clone repository",
2828
"uses": "actions/checkout@v4"
2929
}, {
30-
"name": "install docker-qemu",
30+
"name": "setup docker-qemu",
3131
"uses": "docker/setup-qemu-action@v3"
32+
}, {
33+
"name": "setup docker-buildx",
34+
"uses": "docker/setup-buildx-action@v3"
3235
}, {
3336
"name": "login dockerhub",
3437
"uses": "docker/login-action@v3",

.github/workflows/_push.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
steps:
1919
- name: clone repository
2020
uses: actions/checkout@v4
21-
- name: install docker-qemu
21+
- name: setup docker-qemu
2222
uses: docker/setup-qemu-action@v3
23+
- name: setup docker-buildx
24+
uses: docker/setup-buildx-action@v3
2325
- name: login dockerhub
2426
uses: docker/login-action@v3
2527
with:

.github/workflows/_test.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"jobs": {
1414
"job": {
15-
"name": "${{matrix.os}}/${{matrix.arch}}",
15+
"name": "${{matrix.os}}-${{matrix.arch}}",
1616
"runs-on": "ubuntu-latest",
1717
"strategy": {
1818
"fail-fast": true,
@@ -31,12 +31,16 @@
3131
"name": "clone repository",
3232
"uses": "actions/checkout@v4"
3333
}, {
34-
"name": "install docker-qemu",
34+
"name": "setup docker-qemu",
3535
"uses": "docker/setup-qemu-action@v3"
3636
}, {
37-
"name": "build image",
37+
"name": "setup docker-buildx",
38+
"uses": "docker/setup-buildx-action@v3"
39+
}, {
40+
"name": "build and load image",
3841
"uses": "docker/build-push-action@v5",
3942
"with": {
43+
"load": true,
4044
"pull": true,
4145
"no-cache": true,
4246
"tags": "${{github.sha}}",

.github/workflows/_test.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
required: true
88
jobs:
99
job:
10-
name: ${{matrix.os}}/${{matrix.arch}}
10+
name: ${{matrix.os}}-${{matrix.arch}}
1111
runs-on: ubuntu-latest
1212
strategy:
1313
fail-fast: true
@@ -21,11 +21,14 @@ jobs:
2121
steps:
2222
- name: clone repository
2323
uses: actions/checkout@v4
24-
- name: install docker-qemu
24+
- name: setup docker-qemu
2525
uses: docker/setup-qemu-action@v3
26-
- name: build image
26+
- name: setup docker-buildx
27+
uses: docker/setup-buildx-action@v3
28+
- name: build and load image
2729
uses: docker/build-push-action@v5
2830
with:
31+
load: true
2932
pull: true
3033
no-cache: true
3134
tags: ${{github.sha}}

0 commit comments

Comments
 (0)