2019-03-09 01:12:03 +00:00
|
|
|
kind: pipeline
|
2019-06-05 00:18:25 +00:00
|
|
|
name: tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-03-09 01:12:03 +00:00
|
|
|
|
|
|
|
steps:
|
2019-06-05 00:18:25 +00:00
|
|
|
- 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
|
2019-06-05 00:18:25 +00:00
|
|
|
- apt-get install -y make
|
|
|
|
- make test
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-amd64
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-06-05 05:20:52 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
2019-06-05 00:18:25 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2019-06-05 00:18:25 +00:00
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-06-05 05:20:52 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
2019-06-05 00:18:25 +00:00
|
|
|
|
2019-03-09 01:12:03 +00:00
|
|
|
steps:
|
2019-03-10 22:35:08 +00:00
|
|
|
- name: get qemu
|
2019-06-05 00:18:25 +00:00
|
|
|
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
|
|
|
|
2019-06-05 00:18:25 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm64
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-06-05 05:20:52 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
2019-06-05 00:18:25 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: get qemu
|
|
|
|
image: busybox
|
|
|
|
commands:
|
2019-06-05 00:45:55 +00:00
|
|
|
- sh ./get_qemu.sh aarch64
|
2019-06-05 00:18:25 +00:00
|
|
|
|
|
|
|
- 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
|
2019-06-05 00:18:25 +00:00
|
|
|
- REPO=arm64v8
|
|
|
|
|
2019-03-10 22:35:08 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: manifest
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
|
|
|
- linux-arm
|
2019-06-05 00:18:25 +00:00
|
|
|
- linux-arm64
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-06-05 05:20:52 +00:00
|
|
|
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
|
|
|
|
|