--- kind: pipeline type: kubernetes name: build-debian platform: os: linux arch: amd64 steps: - name: build-ubuntu-22.04 image: plugins/kaniko settings: dockerfile: ubuntu-22.04/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - ubuntu-22.04-dev when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-ubuntu-20.04 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 - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-ubuntu-18.04 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 - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-ubuntu-16.04 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 - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-ubuntu-14.04 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 - cron resources: limits: cpu: 200 memory: 1024MiB - 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 when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - 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 when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - 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 when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB --- kind: pipeline type: kubernetes name: build-rhel platform: os: linux arch: amd64 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 when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - 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 - name: build-fedora-34 image: plugins/kaniko settings: dockerfile: fedora-34/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-34-dev when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-fedora-35 image: plugins/kaniko settings: dockerfile: fedora-35/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-35-dev when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-fedora-36 image: plugins/kaniko settings: dockerfile: fedora-36/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-36-dev when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-fedora-37 image: plugins/kaniko settings: dockerfile: fedora-37/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-37-dev 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: - name: build-alpine-3.14 image: plugins/kaniko settings: dockerfile: alpine-3.14/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - alpine-3.14-dev when: event: - push - pull_request - cron resources: limits: cpu: 200 memory: 1024MiB - name: build-alpine-3.15 image: plugins/kaniko settings: dockerfile: alpine-3.15/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - alpine-3.15-dev 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 image: plugins/kaniko settings: dockerfile: arch/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - arch-dev 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: - name: release-ubuntu-22.04 image: plugins/kaniko settings: dockerfile: ubuntu-22.04/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - ubuntu-22.04 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-ubuntu-20.04 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 resources: limits: cpu: 200 memory: 1024MiB - name: release-ubuntu-18.04 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 resources: limits: cpu: 200 memory: 1024MiB - name: release-ubuntu-16.04 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 resources: limits: cpu: 200 memory: 1024MiB - name: release-ubuntu-14.04 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 resources: limits: cpu: 200 memory: 1024MiB - name: release-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 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-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 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-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 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB --- kind: pipeline type: kubernetes name: release-rhel platform: os: linux arch: amd64 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: - almalinux-8 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - 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: - centos-7 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-fedora-34 image: plugins/kaniko settings: dockerfile: fedora-34/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-34 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-fedora-35 image: plugins/kaniko settings: dockerfile: fedora-35/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-35 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-fedora-36 image: plugins/kaniko settings: dockerfile: fedora-36/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-36 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-fedora-37 image: plugins/kaniko settings: dockerfile: fedora-37/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - fedora-37 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB --- kind: pipeline type: kubernetes name: release-alpine platform: os: linux arch: amd64 steps: - name: release-alpine-3.14 image: plugins/kaniko settings: dockerfile: alpine-3.14/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - alpine-3.14 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB - name: release-alpine-3.15 image: plugins/kaniko settings: dockerfile: alpine-3.15/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - alpine-3.15 when: event: - tag resources: limits: cpu: 200 memory: 1024MiB --- kind: pipeline type: kubernetes name: release-arch platform: os: linux arch: amd64 steps: - name: release-arch 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 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: - push - pull_request - cron 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: - tag depends_on: - release-debian - release-rhel - release-alpine - release-arch