From 969a50bb9616ccbb31588957be8644ef10f0c44a Mon Sep 17 00:00:00 2001 From: hunterlong Date: Sun, 12 Jul 2020 14:51:59 -0700 Subject: [PATCH] docker buildx --- Makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5b2145c1..a7c643e0 100644 --- a/Makefile +++ b/Makefile @@ -332,11 +332,21 @@ certs: -keyout key.pem \ -subj "/C=US/ST=California/L=Santa Monica/O=Statping/OU=Development/CN=localhost" -buildx: - docker buildx create --use - docker buildx build --file=Dockerfile.base --tag=statping/statping:base --build-arg=VERSION=${VERSION} --build-arg=NODEIMAGE=node:${NODE_VERSION}-alpine --platform=linux/arm64,linux/amd64,linux/arm/v7 --output type=image,name=docker.io/statping/statping --push --no-cache . - docker buildx build --file=Dockerfile.base --tag=statping/statping:base --build-arg=VERSION=${VERSION} --build-arg=NODEIMAGE=i386/node:${NODE_VERSION}-alpine --platform=linux/386 --output type=image,name=docker.io/statping/statping --push --no-cache . - docker buildx build --tag=statping/statping:latest --tag=statping/statping:v${VERSION} --tag=statping/statping:dev --build-arg=VERSION=${VERSION} --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 --output type=image,name=docker.io/statping/statping --push . +buildx-master: + docker buildx create --name statping-master + docker buildx use statping-master + docker buildx build --tag=statping/statping:latest --tag=statping/statping:v${VERSION} --tag=statping/statping:dev --build-arg=VERSION=${VERSION} --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 --push . + +buildx-dev: + docker buildx create --name statping-dev + docker buildx use statping-dev + docker buildx build --tag=statping/statping:dev --build-arg=VERSION=${VERSION} --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 --push . + +buildx-base: + docker buildx create --name statping-base + docker buildx use statping-base + docker buildx build --file=Dockerfile.base --tag=statping/statping:base --build-arg=VERSION=${VERSION} --build-arg=NODEIMAGE=node:${NODE_VERSION}-alpine --platform=linux/amd64,linux/arm/v7,linux/arm64 . + docker buildx build --file=Dockerfile.base --tag=statping/statping:base --build-arg=VERSION=${VERSION} --build-arg=NODEIMAGE=i386/node:${NODE_VERSION}-alpine --platform=linux/386 --push . .PHONY: all build build-all buildx build-alpine test-all test test-api docker frontend up down print_details lite sentry-release snapcraft build-linux build-mac build-win build-all postman .SILENT: travis_s3_creds