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