trying new style again

This commit is contained in:
Tobias Trabelsi 2019-05-25 17:22:20 +02:00
parent 46340b6942
commit 120fd5ba1f

View File

@ -1,216 +1,251 @@
pipeline: ---
kind: pipeline
name: ansible-containers
build-ubuntu-18: concurrency:
group: build limit: 9
steps:
- name: build-ubuntu-18
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: ubuntu-18.04 dockerfile: ubuntu-18.04/Dockerfile
dockerfile: ubuntu-18.04/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: ubuntu-18.04
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-ubuntu-16: - name: build-ubuntu-16
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: ubuntu-16.04 dockerfile: ubuntu-16.04/Dockerfile
dockerfile: ubuntu-16.04/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: ubuntu-16.04
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-ubuntu-14: - name: build-ubuntu-14
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: ubuntu-14.04 dockerfile: ubuntu-14.04/Dockerfile
dockerfile: ubuntu-14.04/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: ubuntu-14.04
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-fedora-24: - name: build-fedora-24
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: fedora-24 dockerfile: fedora-24/Dockerfile
dockerfile: fedora-24/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: fedora-24
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-alpine-3: - name: build-alpine-3
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: alpine-3 dockerfile: alpine-3/Dockerfile
dockerfile: alpine-3/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: alpine-3
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-debian-8: - image: plugins/docker
group: build settings:
dockerfile: debian-8/Dockerfile
dry_run: true
repo: lerentis/ansible
tag: debian-8
when:
event:
- push
- pull_request
- name: build-debian-7
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: debian-8 dockerfile: debian-8/Dockerfile
dockerfile: debian-8/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: debian-7
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-debian-7: - name: build-centos-7
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: debian-7 dockerfile: centos-7/Dockerfile
dockerfile: debian-8/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: centos-7
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-centos-7: - name: build-arch
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: centos-7 dockerfile: arch/Dockerfile
dockerfile: centos-7/Dockerfile dry_run: true
dry_run: true repo: lerentis/ansible
tag: arch
when: when:
event: [ push, pull_request ] event:
- push
- pull_request
build-arch: - name: build-ubuntu-18-publish
group: build
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: arch dockerfile: ubuntu-18.04/Dockerfile
dockerfile: arch/Dockerfile password:
dry_run: true from_secret: docker_password
repo: lerentis/ansible
tag: ubuntu-18.04
username:
from_secret: docker_username
when: when:
event: [ push, pull_request ] event:
- tag
build-ubuntu-18-publish: - name: build-ubuntu-16-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: ubuntu-18.04 dockerfile: ubuntu-16.04/Dockerfile
dockerfile: ubuntu-18.04/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: ubuntu-16.04
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-ubuntu-16-publish: - name: build-ubuntu-14-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: ubuntu-16.04 dockerfile: ubuntu-14.04/Dockerfile
dockerfile: ubuntu-16.04/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: ubuntu-14.04
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-ubuntu-14-publish: - name: build-fedora-24-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: ubuntu-14.04 dockerfile: fedora-24/Dockerfile
dockerfile: ubuntu-14.04/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: fedora-24
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-fedora-24-publish: - name: build-alpine-3-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: fedora-24 dockerfile: alpine-3/Dockerfile
dockerfile: fedora-24/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: alpine-3
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-alpine-3-publish: - name: build-debian-8-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: alpine-3 dockerfile: debian-8/Dockerfile
dockerfile: alpine-3/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: debian-8
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-debian-8-publish: - name: build-debian-7-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: debian-8 dockerfile: debian-8/Dockerfile
dockerfile: debian-8/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: debian-7
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-debian-7-publish: - name: build-centos-7-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: debian-7 dockerfile: centos-7/Dockerfile
dockerfile: debian-8/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: centos-7
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-centos-7-publish: - name: build-arch-publish
group: release
image: plugins/docker image: plugins/docker
repo: lerentis/ansible settings:
tag: centos-7 dockerfile: arch/Dockerfile
dockerfile: centos-7/Dockerfile password:
username: from_secret: docker_password
from_secret: docker_username repo: lerentis/ansible
password: tag: arch
from_secret: docker_password username:
from_secret: docker_username
when: when:
event: [ tag ] event:
- tag
build-arch-publish: - name: notify
group: release image: appleboy/drone-telegram
image: plugins/docker settings:
repo: lerentis/ansible message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
tag: arch
dockerfile: arch/Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: [ tag ]
telegram:
image: appleboy/drone-telegram
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
to: 14852963 to: 14852963
message: Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}. token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
when: when:
status: [ failure, success ] status:
- failure
- success