2020-09-08 23:00:04 +00:00
|
|
|
kind: pipeline
|
2020-09-09 03:32:16 +00:00
|
|
|
name: notify-pipeline-start
|
2020-09-08 23:00:04 +00:00
|
|
|
|
|
|
|
steps:
|
2020-09-09 03:32:16 +00:00
|
|
|
- name: slack
|
2020-09-09 03:33:03 +00:00
|
|
|
image: plugins/slack
|
|
|
|
settings:
|
2020-09-09 03:32:16 +00:00
|
|
|
webhook:
|
|
|
|
from_secret: SLACK_WEBHOOK
|
|
|
|
link_names: true
|
|
|
|
template: >
|
|
|
|
{{#if build.pull }}
|
|
|
|
*Build started*: {{ repo.owner }}/{{ repo.name }} - <https://git.eeqj.de/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>
|
|
|
|
{{else}}
|
|
|
|
*Build started: {{ repo.owner }}/{{ repo.name }} - Build #{{ build.number }}* (type: `{{ build.event }}`)
|
|
|
|
{{/if}}
|
|
|
|
Commit: <https://git.eeqj.de/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>
|
|
|
|
Branch: <https://git.eeqj.de/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>
|
|
|
|
Author: {{ build.author }}
|
|
|
|
<{{ build.link }}|Visit build page ↗>
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: test-docker-build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test-docker-build
|
2020-09-08 23:00:04 +00:00
|
|
|
image: plugins/docker
|
|
|
|
network_mode: bridge
|
|
|
|
settings:
|
|
|
|
repo: sneak/sco
|
|
|
|
dry_run: true
|
|
|
|
tags:
|
|
|
|
- ${DRONE_COMMIT_SHA}
|
|
|
|
- ${DRONE_BRANCH}
|
2020-09-09 03:32:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notify-pipeline-end
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: slack
|
|
|
|
image: plugins/slack
|
|
|
|
settings:
|
|
|
|
webhook:
|
|
|
|
from_secret: SLACK_WEBHOOK
|
|
|
|
link_names: true
|
|
|
|
template: >
|
|
|
|
{{#if build.pull }}
|
|
|
|
*{{#success build.status}}✔{{ else }}✘{{/success}} {{ uppercasefirst build.status }}*: {{ repo.owner }}/{{ repo.name }} - <https://git.eeqj.de/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>
|
|
|
|
{{else}}
|
|
|
|
*{{#success build.status}}✔{{ else }}✘{{/success}} {{ uppercasefirst build.status }}: {{ repo.owner }}/{{ repo.name }} - Build #{{ build.number }}* (type: `{{ build.event }}`)
|
|
|
|
{{/if}}
|
|
|
|
Commit: <https://git.eeqj.de/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>
|
|
|
|
Branch: <https://git.eeqj.de/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>
|
|
|
|
Author: {{ build.author }}
|
|
|
|
Duration: {{ since build.created }}
|
|
|
|
<{{ build.link }}|Visit build page ↗>
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test-docker-build
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|