Skip to content

Commit 21e2a0a

Browse files
committed
bump builder image for the Knots versions where it can be done
1 parent bf208a8 commit 21e2a0a

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/build.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88

99
jobs:
1010
build:
11-
name: Build v${{ matrix.knots-version }}
11+
name: Build v${{ matrix.versions.knots }}
1212
runs-on: ubuntu-22.04
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
knots-version:
17-
- 27.1.knots20240621
18-
- 26.1.knots20240513
19-
- 26.1.knots20240325
20-
- 25.1.knots20231115
16+
versions:
17+
- { knots: "27.1.knots20240621", alpine-builder: "3.20", platforms: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/riscv64" }
18+
- { knots: "26.1.knots20240513", alpine-builder: "3.20", platforms: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/riscv64" }
19+
- { knots: "26.1.knots20240325", alpine-builder: "3.18", platforms: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le" }
20+
- { knots: "25.1.knots20231115", alpine-builder: "3.18", platforms: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le" }
2121
steps:
2222
- uses: actions/checkout@v4
2323
- uses: docker/setup-qemu-action@v3
@@ -29,10 +29,11 @@ jobs:
2929
- uses: docker/build-push-action@v5
3030
with:
3131
build-args: |
32-
KNOTS_VERSION=${{ matrix.knots-version }}
33-
cache-from: type=registry,ref=1maa/bitcoin:v${{ matrix.knots-version }}
32+
KNOTS_VERSION=${{ matrix.versions.knots }}
33+
ALPINE_BUILDER_VERSION=${{ matrix.versions.alpine-builder }}
34+
cache-from: type=registry,ref=1maa/bitcoin:v${{ matrix.versions.knots }}
3435
cache-to: type=inline
3536
context: .
36-
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le
37+
platforms: ${{ matrix.versions.platforms }}
3738
push: true
38-
tags: 1maa/bitcoin:v${{ matrix.knots-version }}
39+
tags: 1maa/bitcoin:v${{ matrix.versions.knots }}

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ARG ALPINE_BUILDER_VERSION
2+
13
FROM alpine:3.20 AS verifier
24

35
ARG KNOTS_VERSION
@@ -20,7 +22,7 @@ RUN apk add --no-cache \
2022
&& sha256sum --ignore-missing -c SHA256SUMS
2123

2224

23-
FROM alpine:3.18 AS builder
25+
FROM alpine:${ALPINE_BUILDER_VERSION} AS builder
2426

2527
ARG KNOTS_VERSION
2628

0 commit comments

Comments
 (0)