multiarch-pipeline-test/.drone.yml

69 lines
1.3 KiB
YAML
Raw Normal View History

2019-03-09 01:12:03 +00:00
kind: pipeline
2019-03-10 22:35:08 +00:00
name: linux-amd64
2019-03-09 01:12:03 +00:00
steps:
2019-03-10 22:35:08 +00:00
- name: get qemu
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
2019-03-10 22:22:28 +00:00
- apt-get install -y make wget
2019-03-10 22:14:56 +00:00
- make build/qemu-x86_64-static
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
steps:
2019-03-10 22:35:08 +00:00
- name: get qemu
2019-03-10 22:15:53 +00:00
image: ubuntu:bionic
2019-03-10 22:14:56 +00:00
commands:
2019-03-10 22:17:57 +00:00
- apt-get update
2019-03-10 22:22:28 +00:00
- apt-get install -y make wget
2019-03-10 22:14:56 +00:00
- make build/qemu-arm-static
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-arm32v6
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: manifest
depends_on:
- linux-amd64
- linux-arm
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