test multiarch
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-01-10 15:54:34 +01:00
parent 8369f6305b
commit 4d7b134830
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 9 additions and 9 deletions

View File

@ -42,7 +42,7 @@ local PipelineBuildContainer(arch='amd64') = {
image: 'jdrouet/docker-with-buildx:stable', image: 'jdrouet/docker-with-buildx:stable',
commands: [ commands: [
'docker buildx create --use', 'docker buildx create --use',
'docker buildx build --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE}', 'docker buildx build --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:latest -f "$$DOCKERFILE" .',
], ],
environment: { environment: {
DOCKERFILE: 'Dockerfile.' + std.split(arch, '_')[0], DOCKERFILE: 'Dockerfile.' + std.split(arch, '_')[0],
@ -76,7 +76,7 @@ local PipelineBuildContainer(arch='amd64') = {
commands: [ commands: [
'docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"', 'docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"',
'docker buildx create --use', 'docker buildx create --use',
'docker buildx build --push --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:' + std.split(arch, '_')[0] + ' . -f ${DOCKERFILE}', 'docker buildx build --push --platform linux/' + std.strReplace(arch, '_', '/') + ' --tag thegeeklab/buildx-alpine:' + std.split(arch, '_')[0] + ' -f "$$DOCKERFILE" .',
], ],
environment: { environment: {
DOCKER_PASSWORD: { from_secret: 'docker_password' }, DOCKER_PASSWORD: { from_secret: 'docker_password' },

View File

@ -38,7 +38,7 @@ steps:
image: jdrouet/docker-with-buildx:stable image: jdrouet/docker-with-buildx:stable
commands: commands:
- docker buildx create --use - docker buildx create --use
- docker buildx build --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE} - docker buildx build --platform linux/amd64 --tag thegeeklab/buildx-alpine:latest -f "$$DOCKERFILE" .
environment: environment:
DOCKERFILE: Dockerfile.amd64 DOCKERFILE: Dockerfile.amd64
volumes: volumes:
@ -69,7 +69,7 @@ steps:
commands: commands:
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD" - docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
- docker buildx create --use - docker buildx create --use
- docker buildx build --push --platform linux/amd64 --tag thegeeklab/buildx-alpine:amd64 . -f ${DOCKERFILE} - docker buildx build --push --platform linux/amd64 --tag thegeeklab/buildx-alpine:amd64 -f "$$DOCKERFILE" .
environment: environment:
DOCKERFILE: Dockerfile.amd64 DOCKERFILE: Dockerfile.amd64
DOCKER_PASSWORD: DOCKER_PASSWORD:
@ -127,7 +127,7 @@ steps:
image: jdrouet/docker-with-buildx:stable image: jdrouet/docker-with-buildx:stable
commands: commands:
- docker buildx create --use - docker buildx create --use
- docker buildx build --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE} - docker buildx build --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:latest -f "$$DOCKERFILE" .
environment: environment:
DOCKERFILE: Dockerfile.arm64 DOCKERFILE: Dockerfile.arm64
volumes: volumes:
@ -158,7 +158,7 @@ steps:
commands: commands:
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD" - docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
- docker buildx create --use - docker buildx create --use
- docker buildx build --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:arm64 . -f ${DOCKERFILE} - docker buildx build --push --platform linux/arm64/v8 --tag thegeeklab/buildx-alpine:arm64 -f "$$DOCKERFILE" .
environment: environment:
DOCKERFILE: Dockerfile.arm64 DOCKERFILE: Dockerfile.arm64
DOCKER_PASSWORD: DOCKER_PASSWORD:
@ -216,7 +216,7 @@ steps:
image: jdrouet/docker-with-buildx:stable image: jdrouet/docker-with-buildx:stable
commands: commands:
- docker buildx create --use - docker buildx create --use
- docker buildx build --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest . -f ${DOCKERFILE} - docker buildx build --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:latest -f "$$DOCKERFILE" .
environment: environment:
DOCKERFILE: Dockerfile.arm DOCKERFILE: Dockerfile.arm
volumes: volumes:
@ -247,7 +247,7 @@ steps:
commands: commands:
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD" - docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
- docker buildx create --use - docker buildx create --use
- docker buildx build --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:arm . -f ${DOCKERFILE} - docker buildx build --push --platform linux/arm/v7 --tag thegeeklab/buildx-alpine:arm -f "$$DOCKERFILE" .
environment: environment:
DOCKERFILE: Dockerfile.arm DOCKERFILE: Dockerfile.arm
DOCKER_PASSWORD: DOCKER_PASSWORD:
@ -358,6 +358,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 6f2c42e32ff8a7cae90d34ed880c480d31557f7dc7f796fbae9f133b1de9e246 hmac: 1529e330f44c46887ec7fb431cf29ee6e65dde07f81f1206166d0de540a06e67
... ...