File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 18
18
registry : ghcr.io
19
19
username : matteodelabre
20
20
password : ${{ secrets.CR_PAT }}
21
+ - name : Set up QEMU
22
+ uses : docker/setup-qemu-action@v3
21
23
- name : Build and publish images
22
24
run : |
23
25
./scripts/build -p .
Original file line number Diff line number Diff line change 14
14
steps :
15
15
- name : Checkout the Git repository
16
16
uses : actions/checkout@v3
17
+ - name : Set up QEMU
18
+ uses : docker/setup-qemu-action@v3
17
19
- name : Build images
18
20
run : |
19
21
./scripts/build .
Original file line number Diff line number Diff line change 16
16
registry : ghcr.io
17
17
username : matteodelabre
18
18
password : ${{ secrets.CR_PAT }}
19
+ - name : Set up QEMU
20
+ uses : docker/setup-qemu-action@v3
19
21
- name : Build and publish images
20
22
run : |
21
23
version="$(echo "${{ github.ref }}" | cut -d / -f 3)"
Original file line number Diff line number Diff line change 45
45
imagesdir=" $1 "
46
46
version=" $2 "
47
47
48
- # Enable BuildKit for better cache behavior
49
- # See <https://docs.docker.com/engine/reference/builder/#buildkit>
50
- export DOCKER_BUILDKIT=1
48
+ docker buildx create --use
51
49
52
50
docker-build () {
53
51
from=" $( image-name " $1 " " $version " ) "
54
52
target=" $( image-name " $2 " " $version " ) "
55
53
status " Building image '$target '"
56
- docker image build \
54
+ docker buildx build \
57
55
--build-arg BUILDKIT_INLINE_CACHE=1 \
58
56
--build-arg FROM=" $from " \
59
57
--cache-from " $( image-name " $2 " ) " \
58
+ --platform linux/amd64,linux/arm64 \
60
59
--tag " $target " .
61
60
62
61
if [[ -n $publishflag ]]; then
You can’t perform that action at this time.
0 commit comments