ansible/.drone.yml

838 lines
14 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: kubernetes
name: build-debian
platform:
os: linux
arch: amd64
steps:
2022-04-23 17:06:25 +00:00
- name: build-ubuntu-22.04
2022-04-20 17:31:35 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-22.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:31:35 +00:00
tags:
- ubuntu-22.04-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:31:35 +00:00
2022-04-23 17:06:25 +00:00
- name: build-ubuntu-20.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-20.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-20.04-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: build-ubuntu-18.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-18.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-18.04-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: build-ubuntu-16.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-16.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-16.04-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: build-ubuntu-14.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-14.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- ubuntu-14.04-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-8
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: debian-8/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-8-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-9
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: debian-9/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-9-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
- name: build-debian-10
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: debian-10/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- debian-10-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: build-rhel
platform:
os: linux
arch: amd64
2022-04-23 17:06:25 +00:00
steps:
- name: build-almalinux-8
image: plugins/kaniko
settings:
dockerfile: almalinux-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- almalinux-8-dev
2022-04-23 16:25:53 +00:00
when:
event:
2022-04-23 17:06:25 +00:00
- push
- pull_request
- cron
2022-04-23 16:25:53 +00:00
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- 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
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
- name: build-fedora-34
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
2022-04-20 17:38:19 +00:00
dockerfile: fedora-34/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-20 17:38:19 +00:00
- fedora-34-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
- name: build-fedora-35
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:38:19 +00:00
settings:
dockerfile: fedora-35/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:38:19 +00:00
tags:
- fedora-35-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
- name: build-fedora-36
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:38:19 +00:00
settings:
dockerfile: fedora-36/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:38:19 +00:00
tags:
- fedora-36-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
- name: build-fedora-37
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:38:19 +00:00
settings:
dockerfile: fedora-37/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:38:19 +00:00
tags:
- fedora-37-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: build-alpine
platform:
os: linux
arch: amd64
steps:
2022-04-23 17:06:25 +00:00
- name: build-alpine-3.14
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
2022-04-20 17:41:18 +00:00
dockerfile: alpine-3.14/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-20 17:41:18 +00:00
- alpine-3.14-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:41:18 +00:00
2022-04-23 17:06:25 +00:00
- name: build-alpine-3.15
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:41:18 +00:00
settings:
dockerfile: alpine-3.15/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:41:18 +00:00
tags:
- alpine-3.15-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: build-arch
platform:
os: linux
arch: amd64
steps:
- name: build-arch
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: arch/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
- arch-dev
2022-04-23 17:06:25 +00:00
when:
event:
- push
- pull_request
- cron
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: release-debian
platform:
os: linux
arch: amd64
steps:
2022-04-23 17:06:25 +00:00
- name: release-ubuntu-22.04
2022-04-20 17:31:35 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-22.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:31:35 +00:00
tags:
2022-04-23 17:12:13 +00:00
- ubuntu-22.04
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:31:35 +00:00
2022-04-23 17:06:25 +00:00
- name: release-ubuntu-20.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-20.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- ubuntu-20.04
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-ubuntu-18.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-18.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- ubuntu-18.04
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-ubuntu-16.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-16.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- ubuntu-16.04
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-ubuntu-14.04
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: ubuntu-14.04/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- ubuntu-14.04
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-debian-8
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: debian-8/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- debian-8
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-debian-9
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: debian-9/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- debian-9
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-debian-10
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: debian-10/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- debian-10
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: release-rhel
platform:
os: linux
arch: amd64
2022-04-23 17:06:25 +00:00
steps:
- name: release-almalinux-8
image: plugins/kaniko
settings:
dockerfile: almalinux-8/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- almalinux-8
2022-04-23 16:25:53 +00:00
when:
event:
2022-04-23 17:06:25 +00:00
- tag
2022-04-23 16:25:53 +00:00
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-centos-7
image: plugins/kaniko
settings:
dockerfile: centos-7/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- centos-7
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
- name: release-fedora-34
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:38:19 +00:00
settings:
dockerfile: fedora-34/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:38:19 +00:00
tags:
2022-04-23 17:12:13 +00:00
- fedora-34
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
2022-04-23 17:06:25 +00:00
- name: release-fedora-35
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:38:19 +00:00
settings:
dockerfile: fedora-35/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:38:19 +00:00
tags:
2022-04-23 17:12:13 +00:00
- fedora-35
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
2022-04-23 17:06:25 +00:00
- name: release-fedora-36
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:38:19 +00:00
settings:
dockerfile: fedora-36/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:38:19 +00:00
tags:
2022-04-23 17:12:13 +00:00
- fedora-36
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:38:19 +00:00
2022-04-23 17:06:25 +00:00
- name: release-fedora-37
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
2022-04-20 17:38:19 +00:00
dockerfile: fedora-37/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- fedora-37
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: release-alpine
platform:
os: linux
arch: amd64
steps:
2022-04-23 17:06:25 +00:00
- name: release-alpine-3.14
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
2022-04-20 17:41:18 +00:00
settings:
dockerfile: alpine-3.14/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
2022-04-20 17:41:18 +00:00
tags:
2022-04-23 17:12:13 +00:00
- alpine-3.14
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-20 17:41:18 +00:00
2022-04-23 17:06:25 +00:00
- name: release-alpine-3.15
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
2022-04-20 17:41:18 +00:00
dockerfile: alpine-3.15/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- alpine-3.15
when:
event:
2022-04-23 17:06:25 +00:00
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
2022-04-23 17:06:25 +00:00
---
kind: pipeline
type: kubernetes
name: release-arch
platform:
os: linux
arch: amd64
steps:
2022-04-23 17:06:25 +00:00
- name: release-arch
2022-04-23 16:25:53 +00:00
image: plugins/kaniko
settings:
dockerfile: arch/Dockerfile
2022-04-23 17:06:25 +00:00
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
tags:
2022-04-23 17:12:13 +00:00
- arch
2022-04-23 17:06:25 +00:00
when:
event:
- tag
resources:
limits:
cpu: 200
memory: 1024MiB
---
kind: pipeline
type: kubernetes
name: notify-build
platform:
os: linux
arch: amd64
steps:
- name: notify
image: appleboy/drone-telegram
settings:
message: "Commit {{ commit.message }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to:
from_secret: telegram_userid
token:
from_secret: telegram_secret
when:
status:
- failure
- success
event:
2021-10-02 14:15:07 +00:00
- push
- pull_request
2021-10-17 19:15:58 +00:00
- cron
2022-04-23 17:06:25 +00:00
depends_on:
- build-debian
- build-rhel
- build-alpine
- build-arch
---
kind: pipeline
type: kubernetes
name: notify-release
platform:
os: linux
arch: amd64
steps:
- name: notify
image: appleboy/drone-telegram
settings:
message: "Release {{ build.tag }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to:
from_secret: telegram_userid
token:
from_secret: telegram_secret
when:
status:
- failure
- success
event:
2022-04-23 17:06:25 +00:00
- tag
depends_on:
2022-04-23 17:06:25 +00:00
- release-debian
- release-rhel
- release-alpine
- release-arch