2020-06-07 07:07:39 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-01-14 01:36:16 +01:00
|
|
|
type: docker
|
2021-04-21 05:03:07 +02:00
|
|
|
name: testing
|
2020-06-07 07:07:39 +02:00
|
|
|
|
|
|
|
platform:
|
2021-01-14 01:36:16 +01:00
|
|
|
os: linux
|
2020-06-07 07:07:39 +02:00
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2021-04-21 23:09:43 +02:00
|
|
|
- name: hadolint
|
|
|
|
pull: always
|
2021-11-16 23:03:12 +01:00
|
|
|
image: hadolint/hadolint:v2.8.0-alpine
|
2021-04-21 23:09:43 +02:00
|
|
|
commands:
|
|
|
|
- hadolint --version
|
|
|
|
- hadolint Dockerfile
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/heads/feature-**"
|
|
|
|
- "refs/pull/**"
|
|
|
|
- "refs/tags/**"
|
|
|
|
event:
|
|
|
|
exclude: [cron]
|
|
|
|
|
2021-04-21 05:03:07 +02:00
|
|
|
- name: kaniko-build
|
2020-06-07 07:07:39 +02:00
|
|
|
pull: always
|
2021-05-02 01:50:41 +02:00
|
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
2021-04-21 05:03:07 +02:00
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
2021-10-21 01:12:20 +02:00
|
|
|
args:
|
|
|
|
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
|
|
|
- VCS_REF=${DRONE_COMMIT_SHA:0:7}
|
2021-04-21 05:03:07 +02:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/heads/feature-**"
|
|
|
|
- "refs/pull/**"
|
|
|
|
- "refs/tags/**"
|
|
|
|
event:
|
|
|
|
exclude: [cron]
|
|
|
|
|
|
|
|
- name: kaniko-publish
|
2020-12-02 02:27:11 +01:00
|
|
|
pull: always
|
2021-05-02 01:50:41 +02:00
|
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
2020-12-02 02:27:11 +01:00
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
2021-10-21 01:12:20 +02:00
|
|
|
args:
|
|
|
|
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
|
|
|
- VCS_REF=${DRONE_COMMIT_SHA:0:7}
|
2021-04-21 05:03:07 +02:00
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- linux-amd64
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
|
|
repo: immawanderer/fedora-hugo
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
event:
|
|
|
|
exclude: [pull_request, tag]
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event: [push, pull_request, cron, tag]
|
2020-12-02 02:27:11 +01:00
|
|
|
|
2020-06-07 07:07:39 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-01-14 01:36:16 +01:00
|
|
|
type: docker
|
2020-06-07 07:07:39 +02:00
|
|
|
name: notifications
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2021-01-14 01:36:16 +01:00
|
|
|
steps:
|
|
|
|
- name: discord
|
|
|
|
pull: if-not-exists
|
|
|
|
image: appleboy/drone-discord:latest
|
|
|
|
settings:
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.
|
|
|
|
event: **`{{build.event}}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{else}}
|
|
|
|
❌ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.
|
|
|
|
event: **`${DRONE_BUILD_EVENT}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
```{{commit.message}}```
|
|
|
|
{{/success}}
|
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_token
|
|
|
|
|
2020-06-07 07:07:39 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
2021-04-01 12:31:46 +02:00
|
|
|
exclude: [pull_request]
|
|
|
|
include: [push, tag]
|
2020-06-07 07:07:39 +02:00
|
|
|
status:
|
2021-01-14 01:36:16 +01:00
|
|
|
- success
|
|
|
|
- failure
|
2020-06-07 07:07:39 +02:00
|
|
|
|
|
|
|
depends_on:
|
2021-04-21 05:03:07 +02:00
|
|
|
- testing
|
2020-06-07 07:07:39 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-01-14 01:36:16 +01:00
|
|
|
type: docker
|
2020-06-07 07:07:39 +02:00
|
|
|
name: notifications-cronbuild
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2021-01-14 01:36:16 +01:00
|
|
|
steps:
|
|
|
|
- name: discord
|
|
|
|
pull: always
|
|
|
|
image: appleboy/drone-discord:latest
|
|
|
|
settings:
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
✅ [Nightly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.
|
|
|
|
event: **`{{build.event}}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{else}}
|
|
|
|
❌ [Nightly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.
|
|
|
|
event: **`${DRONE_BUILD_EVENT}`**
|
|
|
|
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`
|
|
|
|
{{/success}}
|
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_hourly_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_hourly_token
|
|
|
|
|
2020-06-07 07:07:39 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
2021-01-14 01:36:16 +01:00
|
|
|
- master
|
2020-06-07 07:07:39 +02:00
|
|
|
event:
|
2021-01-14 01:36:16 +01:00
|
|
|
- cron
|
2020-06-07 07:07:39 +02:00
|
|
|
cron:
|
2021-01-14 01:36:16 +01:00
|
|
|
- nightly
|
2020-06-07 07:07:39 +02:00
|
|
|
status:
|
2021-01-14 01:36:16 +01:00
|
|
|
- success
|
|
|
|
- failure
|
2020-06-07 07:07:39 +02:00
|
|
|
|
|
|
|
depends_on:
|
2021-04-21 05:03:07 +02:00
|
|
|
- testing
|