chore: add arm64 Docker image (#890)

This commit is contained in:
Max Schmitt 2022-05-02 14:46:05 +01:00 committed by GitHub
parent b6b54af13c
commit 298e01ee80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,8 @@ RUN apt-get update && \
# Create the pwuser
adduser pwuser
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
ARG PW_TARGET_ARCH
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-${PW_TARGET_ARCH}
# === BAKE BROWSERS INTO IMAGE ===

View File

@ -32,4 +32,6 @@ else
exit 1
fi
docker build --platform "${PLATFORM}" -t "$3" -f "Dockerfile.$2" ../../
PW_TARGET_ARCH=$(echo $1 | cut -c3-)
docker build --platform "${PLATFORM}" --build-arg "PW_TARGET_ARCH=${PW_TARGET_ARCH}" -t "$3" -f "Dockerfile.$2" ../../

View File

@ -117,4 +117,5 @@ publish_docker_manifest () {
}
publish_docker_images_with_arch_suffix focal amd64
publish_docker_manifest focal amd64
publish_docker_images_with_arch_suffix focal arm64
publish_docker_manifest focal amd64 arm64