test buildx multiarch support #13
43
.drone.yml
43
.drone.yml
@ -37,10 +37,7 @@ steps:
|
|||||||
- name: dryrun
|
- name: dryrun
|
||||||
image: jdrouet/docker-with-buildx:stable
|
image: jdrouet/docker-with-buildx:stable
|
||||||
commands:
|
commands:
|
||||||
- docker version
|
|
||||||
- docker buildx ls
|
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx ls
|
|
||||||
- docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag thegeeklab/${DRONE_REPO_NAME}:latest .
|
- docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag thegeeklab/${DRONE_REPO_NAME}:latest .
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
@ -66,33 +63,19 @@ steps:
|
|||||||
- wait-for
|
- wait-for
|
||||||
|
|
||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: plugins/docker:19
|
image: jdrouet/docker-with-buildx:stable
|
||||||
settings:
|
commands:
|
||||||
dockerfile: Dockerfile
|
- docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
||||||
password:
|
- docker buildx create --use
|
||||||
from_secret: docker_password
|
- docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag thegeeklab/${DRONE_REPO_NAME}:latest .
|
||||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_PASSWORD:
|
||||||
when:
|
from_secret: docker_password
|
||||||
ref:
|
DOCKER_USERNAME:
|
||||||
- refs/heads/main
|
from_secret: docker_username
|
||||||
- refs/tags/**
|
volumes:
|
||||||
depends_on:
|
- name: dockersock
|
||||||
- tags
|
path: /var/run
|
||||||
|
|
||||||
- name: publish-quay
|
|
||||||
image: plugins/docker:19
|
|
||||||
settings:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
password:
|
|
||||||
from_secret: quay_password
|
|
||||||
registry: quay.io
|
|
||||||
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
username:
|
|
||||||
from_secret: quay_username
|
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
@ -203,6 +186,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 91cf547b368ff043cd62db7c317e57a34fe3f1dcf9bbfbc4346d8f46b59ed21f
|
hmac: 6f3550035ea1332afe69f46751b6b54ef4472aa674c4ac732b064659e39ad21c
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user