--- kind: pipeline type: docker name: testing platform: os: linux arch: amd64 steps: - name: hadolint pull: always image: hadolint/hadolint:v2.9.3-alpine commands: - hadolint --version - hadolint Containerfile when: ref: - refs/heads/master - "refs/heads/feature-**" - "refs/pull/**" - "refs/tags/**" event: exclude: [cron] - name: kaniko-build pull: always image: immawanderer/drone-kaniko:linux-amd64 settings: dockerfile: Containerfile context: . args: - BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" - VCS_REF=${DRONE_COMMIT_SHA:0:7} when: ref: - "refs/heads/feature-**" - "refs/pull/**" - "refs/tags/**" event: exclude: [cron] - name: kaniko-publish pull: always image: immawanderer/drone-kaniko:linux-amd64 settings: dockerfile: Containerfile context: . args: - BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" - VCS_REF=${DRONE_COMMIT_SHA:0:7} 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] --- kind: pipeline type: docker name: notifications platform: os: linux arch: amd64 clone: disable: true 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 trigger: event: exclude: [pull_request] include: [push, tag] status: - success - failure depends_on: - testing --- kind: pipeline type: docker name: notifications-cronbuild platform: os: linux arch: amd64 clone: disable: true 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 trigger: branch: - master event: - cron cron: - nightly status: - success - failure depends_on: - testing --- kind: signature hmac: f43c4763b72fa76b3c12b03aa32f9a36f22ebb3a90d546388bd625ba6d3efe01 ...