multiarch-pipeline-test/.drone.yml

134 lines
2.0 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: linux-amd64
2020-01-31 00:01:51 +00:00
# depends_on:
# - tests
trigger:
event:
- push
- tag
ref:
- refs/heads/master
- refs/tags/v*
steps:
2019-03-09 01:12:03 +00:00
- name: build
2019-03-10 21:38:11 +00:00
image: plugins/docker
2019-03-10 21:28:47 +00:00
settings:
repo: iamthefij/multiarch-pipeline-test
auto_tag: true
auto_tag_suffix: linux-amd64
2019-03-10 21:30:16 +00:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-03-09 01:12:03 +00:00
---
kind: pipeline
2019-03-10 22:35:08 +00:00
name: linux-arm
2019-03-09 01:12:03 +00:00
2020-01-31 00:01:51 +00:00
# depends_on:
# - tests
trigger:
event:
- push
- tag
ref:
- refs/heads/master
- refs/tags/v*
2019-03-09 01:12:03 +00:00
steps:
- name: build
2019-03-10 21:38:11 +00:00
image: plugins/docker
2019-03-10 21:28:47 +00:00
settings:
repo: iamthefij/multiarch-pipeline-test
auto_tag: true
2019-03-10 22:39:16 +00:00
auto_tag_suffix: linux-arm
2019-03-10 21:30:16 +00:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-03-10 21:28:47 +00:00
build_args:
- ARCH=arm
- REPO=arm32v6
2019-03-10 22:35:08 +00:00
---
kind: pipeline
name: linux-arm64
2020-01-31 00:01:51 +00:00
# depends_on:
# - tests
trigger:
event:
- push
- tag
ref:
- refs/heads/master
- refs/tags/v*
steps:
- name: build
image: plugins/docker
settings:
repo: iamthefij/multiarch-pipeline-test
auto_tag: true
auto_tag_suffix: linux-arm64
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
2019-06-05 00:45:55 +00:00
- ARCH=aarch64
- REPO=arm64v8
2019-03-10 22:35:08 +00:00
---
kind: pipeline
name: manifest
depends_on:
- linux-amd64
- linux-arm
- linux-arm64
trigger:
event:
- push
- tag
ref:
- refs/heads/master
- refs/tags/v*
2019-03-10 22:35:08 +00:00
steps:
- name: publish manifest
image: plugins/manifest
settings:
spec: manifest.tmpl
auto_tag: true
ignore_missing: true
username:
from_secret: docker_username
password:
from_secret: docker_password
2020-01-31 00:04:53 +00:00
# ---
# kind: pipeline
# name: tests
#
# trigger:
# event:
# - push
# - tag
#
# steps:
# - name: run tests
# image: ubuntu:bionic
# commands:
# - apt-get update
# - apt-get install -y make
# - make test