From af5f55e374debcae962ad796d0b45bdd12237116 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 10 Jan 2021 15:35:24 +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 965a0da..eded99e 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 --push --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:' + std.split(arch, '_')[0] + ' .', ], environment: { DOCKER_PASSWORD: { from_secret: 'docker_password' }, diff --git a/.drone.yml b/.drone.yml index d0eae5f..855f1a7 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 --push --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest-amd64 . + - docker buildx build --push --platform linux/amd64 --tag thegeeklab/buildx-alpine: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 --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest-arm64 . + - docker buildx build --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine: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 --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest-arm . + - docker buildx build --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:arm . environment: DOCKER_PASSWORD: from_secret: docker_password @@ -349,6 +349,6 @@ depends_on: --- kind: signature -hmac: c62f6674c69502af0442907a8c84b281505900de4684cfe78cd868054c62a1b5 +hmac: 76e555af40a68c0e75b0fcb3a67ec222aa8ac8034baf2787a753323fb4a0f58c ...