Skip to content

Commit 20837e2

Browse files
committed
feat: upgrade node 14 to 14.18.2 and support multi-arch build
1 parent c708c07 commit 20837e2

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

build-multi-arch.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
SHA1="$(git rev-parse HEAD)"
6+
SHORT_ID="${SHA1:0:8}"
7+
8+
DOCKER_DIR="$1"
9+
DOCKER_IMAGE_NAME="$2"
10+
DOCKER_IMAGE_TAG_PREFIX="$3"
11+
DOCKER_FILE="${4:-Dockerfile}"
12+
13+
docker buildx build --push --platform linux/amd64,linux/arm64 --tag "hackmdio/$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG_PREFIX-$SHORT_ID" -f "./$DOCKER_DIR/$DOCKER_FILE" .

buildpack-14/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.17.6-buster
1+
FROM node:14.18.2-buster
22

33
ENV DEBIAN_VERSION_NAME buster
44

runtime-14/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.17.6-buster
1+
FROM node:14.18.2-buster
22

33
ENV DEBIAN_VERSION_NAME=buster NODE_ENV=production
44
ENV PORTCHECKER_VERSION=v1.1.0

0 commit comments

Comments
 (0)