Telegram und Drone-Config eingerichtet
Einige Prüfungen sind fehlgeschlagen
continuous-integration/drone/push Build is failing
Einige Prüfungen sind fehlgeschlagen
continuous-integration/drone/push Build is failing
Dieser Commit ist enthalten in:
Ursprung
75d696d0d2
Commit
db495c525e
2 geänderte Dateien mit 33 neuen und 6 gelöschten Zeilen
32
.drone.yml
32
.drone.yml
|
@ -1,13 +1,33 @@
|
||||||
name: php builder
|
name: build and publish image
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: php
|
- name: build and publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: nickslowinski/robotter112
|
repo: nickslowinski/robotter112.de-php-docker
|
||||||
tags: php
|
tags:
|
||||||
|
- '7.4'
|
||||||
|
- '7'
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: ns_docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: ns_docker_password
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- release/v7.4
|
||||||
|
- name: send telegram notification
|
||||||
|
image: appleboy/drone-telegram
|
||||||
|
settings:
|
||||||
|
token:
|
||||||
|
from_secret: tg-drone-bot-token
|
||||||
|
to:
|
||||||
|
from_secret: tg-robotter112.de-chat-id
|
||||||
|
message_file: telegram-notification.tpl
|
||||||
|
depends_on:
|
||||||
|
- build and publish
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
- success
|
7
telegram-notification.tpl
Normale Datei
7
telegram-notification.tpl
Normale Datei
|
@ -0,0 +1,7 @@
|
||||||
|
Build abgeschlossen für *{{repo.owner}}/{{repo.name}}*
|
||||||
|
Status: *{{build.status}}*
|
||||||
|
Build-ID: {{build.number}}
|
||||||
|
Commit: `[{{truncate commit.sha 8}}]({{commit.link}})`
|
||||||
|
|
||||||
|
Start: {{datetime build.started}}
|
||||||
|
Ende: {{datetime build.finished}}
|
In neuem Issue referenzieren