multiarch-pipeline-test/.drone.yml

144 lines
2.1 KiB
YAML
Raw Normal View History

2019-03-09 01:12:03 +00:00
kind: pipeline
name: tests
trigger:
event:
- push
- tag
2019-03-09 01:12:03 +00:00
steps:
- name: run tests
2019-03-10 22:15:53 +00:00
image: ubuntu:bionic
2019-03-10 22:12:08 +00:00
commands:
2019-03-10 22:17:57 +00:00
- apt-get update
- apt-get install -y make
- make test
---
kind: pipeline
name: linux-amd64
depends_on:
- tests
trigger:
branch:
- master
event:
- push
- tag
steps:
- name: get qemu
image: busybox
commands:
2019-06-05 00:33:15 +00:00
- sh ./get_qemu.sh x86_64
2019-03-10 22:12:08 +00:00
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
depends_on:
- tests
trigger:
branch:
- master
event:
- push
- tag
2019-03-09 01:12:03 +00:00
steps:
2019-03-10 22:35:08 +00:00
- name: get qemu
image: busybox
2019-03-10 22:14:56 +00:00
commands:
2019-06-05 00:33:15 +00:00
- sh ./get_qemu.sh arm
2019-03-10 22:14:56 +00:00
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
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
depends_on:
- tests
trigger:
branch:
- master
event:
- push
- tag
steps:
- name: get qemu
image: busybox
commands:
2019-06-05 00:45:55 +00:00
- sh ./get_qemu.sh aarch64
- 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:
branch:
- master
event:
- push
- tag
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