Skip to content

Commit

Permalink
Build on CI instead of Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
zaggash committed Feb 26, 2021
1 parent 9bf4ec6 commit 35f6c25
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 7 deletions.
66 changes: 61 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 35f6c25

Please sign in to comment.