From 58e2d6b50a11a091f3e3d874ca1c44c6926b0d71 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 10 Jan 2021 15:31:51 +0100 Subject: [PATCH] test multiarch --- .drone.jsonnet | 2 +- .drone.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index d347fd2..965a0da 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -73,7 +73,7 @@ local PipelineBuildContainer(arch='amd64') = { commands: [ 'docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"', 'docker buildx create --use', - 'docker buildx build --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:latest-' + std.split(arch, '_')[0] + ' .', + 'docker buildx build --push --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:latest-' + std.split(arch, '_')[0] + ' .', ], environment: { DOCKER_PASSWORD: { from_secret: 'docker_password' }, diff --git a/.drone.yml b/.drone.yml index 1acbee3..d0eae5f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -67,7 +67,7 @@ steps: commands: - docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD" - docker buildx create --use - - docker buildx build --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest-amd64 . + - docker buildx build --push --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest-amd64 . environment: DOCKER_PASSWORD: from_secret: docker_password @@ -153,7 +153,7 @@ steps: commands: - docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD" - docker buildx create --use - - docker buildx build --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest-arm64 . + - docker buildx build --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest-arm64 . environment: DOCKER_PASSWORD: from_secret: docker_password @@ -239,7 +239,7 @@ steps: commands: - docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD" - docker buildx create --use - - docker buildx build --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest-arm . + - docker buildx build --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest-arm . environment: DOCKER_PASSWORD: from_secret: docker_password @@ -349,6 +349,6 @@ depends_on: --- kind: signature -hmac: 39e9ac95938031473dc7a55e779e7a7e103a95dd8c89c4a0ca5ec1dea6493b6c +hmac: c62f6674c69502af0442907a8c84b281505900de4684cfe78cd868054c62a1b5 ...