91 lines
1.6 KiB
YAML
91 lines
1.6 KiB
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build and publish image amd64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: eumau/postfix
|
|
auto_tag: true
|
|
username:
|
|
from_secret: dockerhub_username
|
|
password:
|
|
from_secret: dockerhub_password
|
|
platform: linux/amd64
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
- name: build and publish image arm64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: eumau/postfix
|
|
auto_tag: true
|
|
username:
|
|
from_secret: dockerhub_username
|
|
password:
|
|
from_secret: dockerhub_password
|
|
platform: linux/arm64
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
---
|
|
kind: pipeline
|
|
name: pull_request
|
|
|
|
steps:
|
|
- name: build image only amd64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: eumau/postfix
|
|
auto_tag: true
|
|
dry_run: true
|
|
platform: linux/amd64
|
|
|
|
- name: build image only arm64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: eumau/postfix
|
|
auto_tag: true
|
|
dry_run: true
|
|
platform: linux/arm64
|
|
|
|
trigger:
|
|
event:
|
|
- pull_request
|
|
|
|
---
|
|
kind: pipeline
|
|
name: tags
|
|
|
|
steps:
|
|
- name: docker amd64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: eumau/postfix
|
|
username:
|
|
from_secret: dockerhub_username
|
|
password:
|
|
from_secret: dockerhub_password
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
platform: linux/amd64
|
|
|
|
- name: docker arm64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: eumau/postfix
|
|
username:
|
|
from_secret: dockerhub_username
|
|
password:
|
|
from_secret: dockerhub_password
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
platform: linux/arm64
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|