71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
---
|
|
kind: pipeline
|
|
name: build_amd64
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: docker
|
|
image: plugins/docker
|
|
settings:
|
|
repo: ducampsv/docker-backup-postgres
|
|
auto_tag: "true"
|
|
auto_tag_suffix: amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
---
|
|
kind: pipeline
|
|
name: build_arm64
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: docker
|
|
image: plugins/docker
|
|
settings:
|
|
repo: ducampsv/docker-backup-postgres
|
|
auto_tag: "true"
|
|
auto_tag_suffix: arm64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: manifest
|
|
|
|
steps:
|
|
- name: manifest
|
|
image: plugins/manifest
|
|
settings:
|
|
auto_tag: "true"
|
|
target: ducampsv/docker-backup-postgres:latest
|
|
template: ducampsv/docker-backup-postgres:ARCH
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
depends_on:
|
|
- build_amd64
|
|
- build_arm64
|
|
---
|
|
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
|