kind: pipeline
type: docker
name: linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: docker
image: plugins/docker
settings:
purge: true
no_cache: true
auto_tag: true
auto_tag_suffix: linux-amd64
repo: spcodes/morty
build_args:
- ARCH=amd64
username:
from_secret: USERNAME
password:
from_secret: PASSWORD
trigger:
branch:
- main
event:
- push
---
name: linux-arm
arch: arm
auto_tag_suffix: linux-arm
- ARCH=arm
name: linux-arm64
arch: arm64
auto_tag_suffix: linux-arm64
- ARCH=arm64
name: manifest
- name: publish-version
image: plugins/manifest
ignore_missing: true
target: spcodes/morty:v0.2.0
template: spcodes/morty:OS-ARCH
platforms:
- linux/amd64
- linux/arm64
- linux/arm
- name: publish-latest
target: spcodes/morty
depends_on:
- linux-amd64
- linux-arm64
- linux-arm