ansible/.drone.yml

520 lines
8.7 KiB
YAML
Raw Normal View History

2019-05-25 15:45:10 +00:00
---
2019-05-25 15:22:20 +00:00
kind: pipeline
2021-01-30 20:59:57 +00:00
type: kubernetes
2021-06-26 18:46:48 +00:00
name: build-debian
2019-05-25 15:22:20 +00:00
2019-05-25 15:45:10 +00:00
platform:
os: linux
arch: amd64
2019-05-25 15:22:20 +00:00
steps:
2019-10-27 20:35:29 +00:00
2020-06-05 22:16:38 +00:00
- name: build-ubuntu-20
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2020-06-05 22:16:38 +00:00
settings:
dockerfile: ubuntu-20.04/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2020-06-05 22:16:38 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-20.04-dev
2020-06-05 22:16:38 +00:00
when:
event:
- push
- pull_request
2019-05-25 15:45:10 +00:00
- name: build-ubuntu-18
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: ubuntu-18.04/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-18.04-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
- name: build-ubuntu-16
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: ubuntu-16.04/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-16.04-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
- name: build-ubuntu-14
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: ubuntu-14.04/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-14.04-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
- name: build-debian-8
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: debian-8/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- debian-8-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
- name: build-debian-9
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: debian-9/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- debian-9-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
- name: build-debian-10
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: debian-10/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- debian-10-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: build-rhel
platform:
os: linux
arch: amd64
steps:
- name: build-fedora-24
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: fedora-24/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- fedora-24-dev
2020-10-31 16:24:36 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
- name: build-centos-8
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2020-10-31 16:24:36 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: centos-8/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2020-10-31 16:24:36 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- centos-8-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
- name: build-centos-7
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2020-06-11 10:45:06 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: centos-7/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2020-06-11 10:45:06 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- centos-7-dev
2020-06-11 10:45:06 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: build-alpine
platform:
os: linux
arch: amd64
steps:
- name: build-alpine-3
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: alpine-3/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- alpine-3-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: build-arch
platform:
os: linux
arch: amd64
steps:
2019-05-25 15:45:10 +00:00
- name: build-arch
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: arch/Dockerfile
2021-02-05 19:16:26 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2019-05-25 15:45:10 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- arch-dev
2019-05-25 15:45:10 +00:00
when:
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: release-debian
platform:
os: linux
arch: amd64
steps:
2021-02-05 19:16:26 +00:00
- name: build-ubuntu-20-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-02-05 19:16:26 +00:00
dockerfile: ubuntu-20.04/Dockerfile
2019-05-25 15:45:10 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-20.04
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-02-05 19:16:26 +00:00
- name: build-ubuntu-18-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2020-06-05 22:16:38 +00:00
settings:
2021-02-05 19:16:26 +00:00
dockerfile: ubuntu-18.04/Dockerfile
2020-06-05 22:16:38 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-18.04
2020-06-05 22:16:38 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2020-06-05 22:16:38 +00:00
2021-02-05 19:16:26 +00:00
- name: build-ubuntu-16-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: ubuntu-16.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-16.04
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-02-05 19:16:26 +00:00
- name: build-ubuntu-14-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: ubuntu-14.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- ubuntu-14.04
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
- name: build-debian-8-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: debian-8/Dockerfile
2019-05-25 15:45:10 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- debian-8
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
- name: build-debian-9-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: debian-9/Dockerfile
2019-05-25 15:45:10 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- debian-9
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
- name: build-debian-10-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: debian-10/Dockerfile
2019-05-25 15:45:10 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- debian-10
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: release-rhel
platform:
os: linux
arch: amd64
steps:
- name: build-fedora-24-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: fedora-24/Dockerfile
2020-10-31 16:24:36 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- fedora-24
2020-10-31 16:24:36 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2020-10-31 16:24:36 +00:00
2021-06-26 18:46:48 +00:00
- name: build-centos-8-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2020-10-31 16:24:36 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: centos-8/Dockerfile
2019-05-25 15:45:10 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- centos-8
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
- name: build-centos-7-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: centos-7/Dockerfile
2019-05-25 15:45:10 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- centos-7
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: release-alpine
platform:
os: linux
arch: amd64
steps:
- name: build-alpine-3-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2020-06-11 10:45:06 +00:00
settings:
2021-06-26 18:46:48 +00:00
dockerfile: alpine-3/Dockerfile
2020-06-11 10:45:06 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
2021-06-26 18:46:48 +00:00
- alpine-3
2020-06-11 10:45:06 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2020-06-11 10:45:06 +00:00
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: release-arch
platform:
os: linux
arch: amd64
steps:
2021-02-05 19:16:26 +00:00
- name: build-arch-release
2021-02-20 20:25:32 +00:00
image: plugins/kaniko
2019-05-25 15:45:10 +00:00
settings:
dockerfile: arch/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
2021-02-05 19:16:26 +00:00
repo: lerentis/ansible
2021-02-05 19:44:41 +00:00
tags:
- arch
2019-05-25 15:45:10 +00:00
when:
event:
2021-02-05 19:17:51 +00:00
- tag
2021-02-05 19:16:26 +00:00
2019-05-25 15:45:10 +00:00
2021-06-26 18:46:48 +00:00
---
kind: pipeline
type: kubernetes
name: notify-build
platform:
os: linux
arch: amd64
steps:
2019-05-25 15:45:10 +00:00
- name: notify
image: appleboy/drone-telegram
settings:
message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to: 14852963
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
when:
status:
- failure
- success
2021-10-02 14:15:07 +00:00
event:
- push
- pull_request
2021-06-26 18:46:48 +00:00
depends_on:
2019-05-25 15:45:10 +00:00
- build-arch
2021-06-26 18:46:48 +00:00
- build-alpine
- build-debian
- build-rhel
---
kind: pipeline
type: kubernetes
name: notify-release
platform:
os: linux
arch: amd64
steps:
- name: notify
image: appleboy/drone-telegram
settings:
2021-10-02 16:42:30 +00:00
message: "Release {{ build.tag }} ran with build {{ build.number }} and finished with status {{ build.status }}."
2021-06-26 18:46:48 +00:00
to: 14852963
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
when:
status:
- failure
- success
2021-10-02 14:15:07 +00:00
event:
- tag
2021-06-26 18:46:48 +00:00
depends_on:
- release-arch
- release-alpine
- release-debian
- release-rhel