ansible/.drone.yml
Tobias Trabelsi 3c86f057c2
Some checks failed
continuous-integration/drone/push Build is failing
reduced parallelism
2021-02-20 21:11:26 +01:00

448 lines
8.4 KiB
YAML

---
kind: pipeline
type: kubernetes
name: ansible-containers
platform:
os: linux
arch: amd64
steps:
- name: build-ubuntu-20
image: plugins/kaniko
settings:
dockerfile: ubuntu-20.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-20.04-dev
when:
event:
- push
- pull_request
- name: build-ubuntu-18
image: plugins/kaniko
settings:
dockerfile: ubuntu-18.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-18.04-dev
when:
event:
- push
- pull_request
- name: build-ubuntu-16
image: plugins/kaniko
settings:
dockerfile: ubuntu-16.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-16.04-dev
when:
event:
- push
- pull_request
- name: build-ubuntu-14
image: plugins/kaniko
settings:
dockerfile: ubuntu-14.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-14.04-dev
when:
event:
- push
- pull_request
- name: build-fedora-24
image: plugins/kaniko
settings:
dockerfile: fedora-24/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- fedora-24-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-alpine-3
image: plugins/kaniko
settings:
dockerfile: alpine-3/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- alpine-3-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-debian-8
image: plugins/kaniko
settings:
dockerfile: debian-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-8-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-debian-9
image: plugins/kaniko
settings:
dockerfile: debian-9/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-9-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-debian-10
image: plugins/kaniko
settings:
dockerfile: debian-10/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-10-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-centos-8
image: plugins/kaniko
settings:
dockerfile: centos-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- centos-8-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-centos-7
image: plugins/kaniko
settings:
dockerfile: centos-7/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- centos-7-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-arch
image: plugins/kaniko
settings:
dockerfile: arch/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- arch-dev
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
when:
event:
- push
- pull_request
- name: build-ubuntu-20-release
image: plugins/kaniko
settings:
dockerfile: ubuntu-20.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-20.04
when:
event:
- tag
- name: build-ubuntu-18-release
image: plugins/kaniko
settings:
dockerfile: ubuntu-18.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-18.04
when:
event:
- tag
- name: build-ubuntu-16-release
image: plugins/kaniko
settings:
dockerfile: ubuntu-16.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-16.04
when:
event:
- tag
- name: build-ubuntu-14-release
image: plugins/kaniko
settings:
dockerfile: ubuntu-14.04/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-14.04
when:
event:
- tag
- name: build-fedora-24-release
image: plugins/kaniko
settings:
dockerfile: fedora-24/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- fedora-24
when:
event:
- tag
- name: build-alpine-3-release
image: plugins/kaniko
settings:
dockerfile: alpine-3/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- alpine-3
when:
event:
- tag
- name: build-debian-8-release
image: plugins/kaniko
settings:
dockerfile: debian-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-8
when:
event:
- tag
- name: build-debian-9-release
image: plugins/kaniko
settings:
dockerfile: debian-9/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-9
when:
event:
- tag
- name: build-debian-10-release
image: plugins/kaniko
settings:
dockerfile: debian-10/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-10
when:
event:
- tag
- name: build-centos-8-release
image: plugins/kaniko
settings:
dockerfile: centos-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- centos-8
when:
event:
- tag
- name: build-centos-7-release
image: plugins/kaniko
settings:
dockerfile: centos-7/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- centos-7
when:
event:
- tag
- name: build-arch-release
image: plugins/kaniko
settings:
dockerfile: arch/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- arch
when:
event:
- tag
- 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
depends_on:
- build-ubuntu-20
- build-ubuntu-18
- build-ubuntu-16
- build-ubuntu-14
- build-fedora-24
- build-alpine-3
- build-debian-8
- build-debian-9
- build-debian-10
- build-centos-7
- build-centos-8
- build-arch