diff --git a/.drone.yml b/.drone.yml index 6344731..86980a1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,9 +10,65 @@ trigger: trigger_build steps: -- name: trigger_dockerhub - image: plugins/webhook +- name: build_patched-archlinux + image: plugins/docker settings: - urls: - from_secret: WEBHOOK_URL - method: POST + repo: zaggash/archlinux + tags: glibc-patched + dockerfile: Dockerfile.archlinux + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + pull_image: true + no_cache: true + purge: true + +- name: notify_telegram_patched-archlinux + image: appleboy/drone-telegram + settings: + token: + from_secret: TELEGRAM_TOKEN + to: + from_secret: TELEGRAM_GROUPID + format: markdown + message: > + ❌ zaggash/archlinux:glibc-patched + Image build #{{build.number}} from `{{repo.name}}` failed. + 🌐 {{ build.link }} + when: + status: + - failure + + +- name: build_arch-makepkg + image: plugins/docker + settings: + repo: zaggash/arch-makepkg + tags: latest + dockerfile: Dockerfile + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + pull_image: true + no_cache: true + purge: true + +- name: notify_telegram_arch-makepkg + image: appleboy/drone-telegram + settings: + token: + from_secret: TELEGRAM_TOKEN + to: + from_secret: TELEGRAM_GROUPID + format: markdown + message: > + ❌ zaggash/arch-makepkg:latest + Image build #{{build.number}} from `{{repo.name}}` failed. + 🌐 {{ build.link }} + when: + status: + - failure + + diff --git a/README.md b/README.md index 00ac788..9aeae5f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -![Drone (self-hosted) with branch](https://img.shields.io/drone/build/zaggash/docker-makepkg/master?label=Trigger&logo=drone&server=https%3A%2F%2Fci.ziggzagg.fr&style=for-the-badge) -![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/zaggash/arch-makepkg?label=build&logo=docker&style=for-the-badge) +![Drone (self-hosted) with branch](https://img.shields.io/drone/build/zaggash/docker-makepkg/master?label=Build&logo=drone&server=https%3A%2F%2Fci.ziggzagg.fr&style=for-the-badge) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/zaggash/arch-makepkg?logo=docker&sort=date&style=for-the-badge) ![MicroBadger Layers](https://img.shields.io/microbadger/layers/zaggash/arch-makepkg?logo=docker&style=for-the-badge) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/zaggash/arch-makepkg?label=size&logo=docker&style=for-the-badge)