107 lines
1.8 KiB
YAML
107 lines
1.8 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: linux-amd64
|
|
|
|
platform:
|
|
arch: amd64
|
|
os: linux
|
|
|
|
steps:
|
|
- name: build
|
|
image: plugins/docker:linux-amd64
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
dry_run: true
|
|
repo: docker.asperti.com/paspo/ftps
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: build_and_publish
|
|
image: plugins/docker:linux-amd64
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
force_tag: true
|
|
password:
|
|
from_secret: docker_password
|
|
registry: docker.asperti.com
|
|
repo: docker.asperti.com/paspo/ftps
|
|
username:
|
|
from_secret: docker_username
|
|
tags:
|
|
- latest-linux-amd64
|
|
when:
|
|
event:
|
|
- tag
|
|
- cron
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: linux-arm64
|
|
|
|
platform:
|
|
arch: arm64
|
|
os: linux
|
|
|
|
steps:
|
|
- name: build
|
|
image: plugins/docker:linux-arm64
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
dry_run: true
|
|
repo: docker.asperti.com/paspo/ftps
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: build_and_publish
|
|
image: plugins/docker:linux-arm64
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
force_tag: true
|
|
password:
|
|
from_secret: docker_password
|
|
registry: docker.asperti.com
|
|
repo: docker.asperti.com/paspo/ftps
|
|
username:
|
|
from_secret: docker_username
|
|
tags:
|
|
- latest-linux-arm64
|
|
when:
|
|
event:
|
|
- tag
|
|
- cron
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: manifest
|
|
|
|
steps:
|
|
- name: manifest
|
|
image: plugins/manifest
|
|
settings:
|
|
force_tag: true
|
|
ignore_missing: true
|
|
spec: manifest.tmpl
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
tags:
|
|
- latest
|
|
when:
|
|
event:
|
|
- tag
|
|
- cron
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
- cron
|
|
|
|
depends_on:
|
|
- linux-amd64
|
|
- linux-arm64
|