still trying to get buildx to work

This commit is contained in:
ahgraber 2021-02-17 21:12:02 -05:00
parent c08157e213
commit 31c176042c
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
# FROM ubuntu:focal # FROM ubuntu:focal
ARG TARGETPLATFORM
FROM --platform=${TARGETPLATFORM:-linux/amd64} ubuntu:focal FROM --platform=${TARGETPLATFORM:-linux/amd64} ubuntu:focal
ARG TARGETPLATFORM ARG TARGETPLATFORM
ARG BUILD_DATE ARG BUILD_DATE

View File

@ -12,10 +12,10 @@ docker buildx create --name "${BUILDX_NAME:-certbot}" || echo
docker buildx use "${BUILDX_NAME:-certbot}" docker buildx use "${BUILDX_NAME:-certbot}"
docker buildx build \ docker buildx build \
-f Dockerfile \
-t ${REGISTRY}/certbot_only:${TAG} \
--no-cache \ --no-cache \
--platform linux/amd64,linux/arm/v7,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--file Dockerfile \
--tag ${REGISTRY}/certbot_only:${TAG} \
--push \ --push \
. .