mirror of
https://github.com/thegeeklab/drone-admin.git
synced 2024-11-15 04:00:40 +00:00
86 lines
1.7 KiB
YAML
86 lines
1.7 KiB
YAML
---
|
|
kind: pipeline
|
|
name: build-container
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: dryrun
|
|
image: thegeeklab/drone-docker-buildx:23
|
|
settings:
|
|
dockerfile: Dockerfile.multiarch
|
|
dry_run: true
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- linux/arm/v7
|
|
- linux/arm/v6
|
|
provenance: false
|
|
repo: thegeeklab/${DRONE_REPO_NAME}
|
|
when:
|
|
ref:
|
|
- refs/pull/**
|
|
|
|
- name: publish-dockerhub
|
|
image: thegeeklab/drone-docker-buildx:23
|
|
settings:
|
|
auto_tag: true
|
|
dockerfile: Dockerfile.multiarch
|
|
password:
|
|
from_secret: docker_password
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- linux/arm/v7
|
|
- linux/arm/v6
|
|
provenance: false
|
|
repo: thegeeklab/${DRONE_REPO_NAME}
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
depends_on:
|
|
- dryrun
|
|
|
|
- name: publish-quay
|
|
image: docker.io/xoxys/drone-docker-buildx:debug
|
|
settings:
|
|
auto_tag: true
|
|
dockerfile: Dockerfile.multiarch
|
|
log_level: debug
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- linux/arm/v7
|
|
- linux/arm/v6
|
|
provenance: false
|
|
registries:
|
|
- password:
|
|
from_secret: debug_string
|
|
registry: quay.io
|
|
username:
|
|
from_secret: debug_string
|
|
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
|
|
when:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
depends_on:
|
|
- dryrun
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
---
|
|
kind: signature
|
|
hmac: a8f116a356de9144e9610f3ad2bb66c679d56151ef9b71b91d9bf343c2ff04ef
|
|
|
|
...
|