File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:bionic AS build
1
+ ARG UBUNTU_VERSION=bionic
2
+ FROM ubuntu:${UBUNTU_VERSION} AS build
2
3
3
4
# Possible values: s390x, arm64, x64
4
5
ARG NODE_VERSION=16.20.1
Original file line number Diff line number Diff line change 49
49
shell : bash
50
50
run : |
51
51
echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
52
+ echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT"
52
53
53
54
- name : Set up QEMU
54
55
uses : docker/setup-qemu-action@v3
61
62
docker buildx create --name builder --bootstrap --use
62
63
docker buildx build \
63
64
--platform linux/${{ matrix.linux_arch }} \
64
- --build-arg NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }} \
65
- --build-arg NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }} \
65
+ --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
66
+ --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
67
+ --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \
66
68
--output type=local,dest=./prebuilds,platform-split=false \
67
69
-f ./.github/docker/Dockerfile.glibc \
68
70
.
You can’t perform that action at this time.
0 commit comments