2019-04-28 11:17:07 -07:00
---
2019-04-11 15:24:51 -07:00
kind : pipeline
name : default
2019-07-04 08:43:34 -07:00
services :
- name : docker
image : docker:dind
privileged : true
command :
- --dns=8.8.8.8
volumes :
- name : dockersock
path : /var/run
2019-07-04 09:36:17 -07:00
- name : dev
path : /dev
2019-07-04 08:43:34 -07:00
- name : tmp
path : /tmp
2019-04-11 15:24:51 -07:00
steps :
2019-06-21 23:12:36 -07:00
- name : fetch
image : docker:git
commands :
- git fetch --tags
when :
event : tag
- name : lint
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make lint
2019-07-03 23:07:02 -05:00
depends_on :
- fetch
2019-07-16 15:09:35 +00:00
- name : build-machined
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make machined
depends_on :
- lint
2019-07-03 23:07:02 -05:00
- name : build-osd
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make osd
depends_on :
- lint
- name : build-trustd
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make trustd
depends_on :
- lint
- name : build-proxyd
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make proxyd
depends_on :
- lint
- name : build-ntpd
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make ntpd
depends_on :
- lint
- name : build-osctl-darwin
2019-06-21 23:12:36 -07:00
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
2019-07-13 00:24:51 +00:00
- make osctl-darwin
2019-07-03 23:07:02 -05:00
depends_on :
- lint
- name : build-osctl-linux
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
2019-07-13 00:24:51 +00:00
- make osctl-linux
2019-07-03 23:07:02 -05:00
depends_on :
- lint
- name : rootfs
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make rootfs
2019-06-21 23:12:36 -07:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
path : /var/run
2019-06-21 23:12:36 -07:00
depends_on :
2019-07-16 15:09:35 +00:00
- build-machined
2019-07-03 23:07:02 -05:00
- build-osd
- build-proxyd
- build-trustd
- build-ntpd
2019-07-21 18:27:15 +00:00
- name : initramfs
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make initramfs
volumes :
- name : dockersock
path : /var/run
depends_on :
- rootfs
2019-07-03 23:07:02 -05:00
- name : installer
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make installer
volumes :
- name : dockersock
path : /var/run
depends_on :
- rootfs
2019-07-21 18:27:15 +00:00
- initramfs
2019-07-03 23:07:02 -05:00
- name : talos-image
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make talos
volumes :
- name : dockersock
path : /var/run
depends_on :
- rootfs
2019-06-21 23:12:36 -07:00
- name : test
2019-07-04 08:43:34 -07:00
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
2019-06-21 23:12:36 -07:00
commands :
2019-07-04 08:43:34 -07:00
- make test
2019-06-21 23:12:36 -07:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
2019-07-03 23:07:02 -05:00
path : /var/run/
2019-06-21 23:12:36 -07:00
depends_on :
2019-07-10 19:14:45 +03:00
- rootfs
2019-06-21 23:12:36 -07:00
- name : coverage
image : plugins/codecov
settings :
token :
from_secret : codecov_token
files :
- coverage.txt
depends_on :
- test
- name : basic-integration
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make basic-integration
2019-07-04 08:43:34 -07:00
- cp build/osctl-linux-amd64 /tmp/osctl
- cd /tmp
- ./osctl config generate cluster.local 1.2.3.4,2.3.4.5,3.4.5.6
2019-06-21 23:12:36 -07:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
path : /var/run
2019-06-21 23:12:36 -07:00
- name : tmp
path : /tmp
depends_on :
2019-07-03 23:07:02 -05:00
- talos-image
2019-06-21 23:12:36 -07:00
2019-07-15 22:32:11 +00:00
- name : kernel
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make kernel
volumes :
- name : dockersock
path : /var/run
when :
event : tag
depends_on :
- basic-integration
2019-07-04 08:43:34 -07:00
- name : iso
2019-06-21 23:12:36 -07:00
image : autonomy/build-container:latest
pull : always
environment :
2019-07-04 08:43:34 -07:00
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
2019-06-21 23:12:36 -07:00
commands :
2019-07-04 08:43:34 -07:00
- make talos-iso
2019-06-21 23:12:36 -07:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
path : /var/run
2019-06-21 23:12:36 -07:00
when :
2019-07-04 08:43:34 -07:00
event : tag
2019-06-21 23:12:36 -07:00
depends_on :
- basic-integration
2019-07-04 08:43:34 -07:00
- name : gce
image : autonomy/build-container:latest
2019-07-02 10:47:22 -04:00
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
2019-07-04 08:43:34 -07:00
- make talos-gce
2019-07-02 10:47:22 -04:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
path : /var/run
2019-07-04 09:36:17 -07:00
- name : dev
path : /dev
2019-07-02 10:47:22 -04:00
when :
event : tag
depends_on :
2019-07-04 08:43:34 -07:00
- basic-integration
2019-07-02 10:47:22 -04:00
2019-07-17 02:54:00 +00:00
- name : azure
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
commands :
- make talos-azure
volumes :
- name : dockersock
path : /var/run
- name : dev
path : /dev
when :
event : tag
depends_on :
- basic-integration
2019-07-22 20:30:01 +00:00
- gce
2019-07-17 02:54:00 +00:00
2019-07-04 08:43:34 -07:00
- name : push
image : autonomy/build-container:latest
2019-06-21 23:12:36 -07:00
pull : always
2019-07-04 08:43:34 -07:00
environment :
DOCKER_USERNAME :
from_secret : docker_username
DOCKER_PASSWORD :
from_secret : docker_password
2019-06-21 23:12:36 -07:00
commands :
2019-07-04 08:43:34 -07:00
- make gitmeta
- make login
- make push
2019-06-21 23:12:36 -07:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
path : /var/run
2019-06-21 23:12:36 -07:00
when :
2019-07-04 08:43:34 -07:00
event :
exclude :
- pull_request
2019-06-21 23:12:36 -07:00
depends_on :
2019-07-04 08:43:34 -07:00
- basic-integration
2019-06-21 23:12:36 -07:00
2019-07-30 01:09:05 +00:00
- name : aws
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
AWS_ACCESS_KEY_ID :
from_secret : aws_access_key_id
AWS_SECRET_ACCESS_KEY :
from_secret : aws_secret_access_key
AWS_DEFAULT_REGION : us-west-2
AWS_PUBLISH_REGIONS : us-west-2,us-east-1,us-east-2,us-west-1,eu-central-1
commands :
- make talos-aws
volumes :
- name : dockersock
path : /var/run
- name : dev
path : /dev
when :
event : tag
depends_on :
- basic-integration
- push
2019-06-21 23:12:36 -07:00
- name : release
image : plugins/github-release
settings :
api_key :
from_secret : github_token
draft : true
files :
- build/*
checksum :
- sha256
- sha512
when :
event : tag
depends_on :
2019-07-04 08:43:34 -07:00
- basic-integration
2019-07-15 22:32:11 +00:00
- kernel
2019-06-21 23:12:36 -07:00
- iso
2019-07-02 10:47:22 -04:00
- gce
2019-07-22 20:47:31 +00:00
- azure
2019-04-15 16:02:06 -07:00
2019-04-11 15:24:51 -07:00
volumes :
2019-07-04 08:43:34 -07:00
- name : dockersock
2019-06-21 23:12:36 -07:00
temp : {}
2019-07-04 09:36:17 -07:00
- name : dev
host :
path : /dev
2019-07-04 08:43:34 -07:00
- name : tmp
2019-07-03 18:06:47 -07:00
temp : {}
2019-07-04 08:43:34 -07:00
2019-07-15 15:00:31 -04:00
trigger :
2019-07-22 20:30:01 +00:00
cron :
exclude : [ nightly]
2019-07-15 15:00:31 -04:00
---
kind : pipeline
name : e2e
services :
- name : docker
image : docker:dind
privileged : true
command :
- --dns=8.8.8.8
- --dns=8.8.4.4
- --mtu=1440
volumes :
- name : dockersock
path : /var/run
- name : dev
path : /dev
- name : tmp
path : /tmp
steps :
- name : gce
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
GCE_SVC_ACCT :
from_secret : gce_svc_acct
TAG : latest
commands :
- make talos-gce
- ./hack/test/gce-setup.sh
volumes :
- name : dockersock
path : /var/run
- name : dev
path : /dev
- name : e2e-integration
image : autonomy/build-container:latest
pull : always
environment :
BUILDKIT_HOST : tcp://buildkitd.ci.svc:1234
BINDIR : /usr/local/bin
PACKET_AUTH_TOKEN :
from_secret : packet_auth_token
PACKET_PROJECT_ID :
from_secret : packet_project_id
PACKET_PXE_SERVER :
from_secret : packet_pxe_server
GCE_SVC_ACCT :
from_secret : gce_svc_acct
commands :
- make osctl-linux
- make e2e-integration
volumes :
- name : dockersock
path : /var/run
- name : tmp
path : /tmp
volumes :
- name : dockersock
temp : {}
- name : dev
host :
path : /dev
- name : tmp
temp : {}
trigger :
2019-07-22 20:30:01 +00:00
cron : [ nightly]
2019-07-15 15:00:31 -04:00
2019-04-28 11:17:07 -07:00
---
kind : pipeline
name : notify
clone :
disable : true
steps :
2019-06-21 23:12:36 -07:00
- name : slack
image : plugins/slack
settings :
webhook :
from_secret : slack_webhook
channel : proj-talos-maint
when :
status :
- success
- failure
2019-04-28 11:17:07 -07:00
trigger :
status :
2019-06-21 23:12:36 -07:00
- success
- failure
2019-04-28 11:17:07 -07:00
depends_on :
2019-06-21 23:12:36 -07:00
- default
2019-07-15 15:00:31 -04:00
- e2e