docker-pacoloco-builder/.drone.yml
vincent 6568ca67a0
Some checks failed
continuous-integration/drone Build is failing
debug
2024-06-02 18:01:28 +02:00

85 lines
1.6 KiB
YAML

---
kind: pipeline
name: build_amd64
platform:
os: linux
arch: amd64
steps:
- name: clone repo
image: alpine/git
commands:
- git clone https://github.com/anatol/pacoloco.git
- name: docker
image: plugins/docker
settings:
repo: ducampsv/pacoloco
auto_tag: "true"
auto_tag_suffix: amd64
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: ./pacoloco/Dockerfile
context: ./pacoloco
custom_dns: 192.168.0.5
---
kind: pipeline
type: docker
name: manifest
steps:
- name: manifest
image: plugins/manifest
settings:
auto_tag: "true"
target: ducampsv/pacoloco:latest
template: ducampsv/pacoloco:ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/arm
depends_on:
- build_amd64
---
kind: secret
name: docker_username
get:
path: secrets/data/droneci/dockerHub
name: username
---
kind: secret
name: docker_password
get:
path: secrets/data/droneci/dockerHub
name: password
#---
#kind: pipeline
#name: build_arm
#platform:
# os: linux
# arch: arm
#
#steps:
# - name: clone repo
# image: alpine/git
# commands:
# - git clone https://github.com/anatol/pacoloco.git
# - name: docker
# image: plugins/docker
# settings:
# repo: ducampsv/pacoloco
# auto_tag: "true"
# auto_tag_suffix: arm
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
# dockerfile: ./pacoloco/Dockerfile
# context: ./pacoloco