drone-buildx/.drone.yml

51 lines
1.0 KiB
YAML
Raw Normal View History

2022-05-18 23:04:12 +02:00
---
kind: pipeline
type: docker
name: Build AMD64
platform:
os: linux
arch: amd64
trigger:
branche:
- master
# event:
# - tag
steps:
- name: Harbor AMD64
image: plugins/docker # Check Entrypoint
privileged: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
settings:
username:
from_secret: harbor_username
password:
from_secret: harbor_password
repo: goharbor.voser.cloud/homelab/docker-buildx
registry: https://goharbor.voser.cloud
auto_tag: true
build_args:
- ARCH=amd64
dockerfile: ./Dockerfiles/Dockerfile
- name: Dockerhub AMD64
image: plugins/docker # Check Entrypoint
privileged: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: waaaaat/docker-buildx
auto_tag: true
build_args:
- ARCH=amd64
dockerfile: ./Dockerfiles/Dockerfile
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock