Pipeline template
kind: pipeline
type: kubernetes
name: notify start
steps:
- name: notify start
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_home_server
roomid:
from_secret: matrix_room_id
username:
from_secret: matrix_username
password:
from_secret: matrix_password
accesstoken:
from_secret: matrix_access_token
template: |-
[${DRONE_REPO_NAME}]
Build **started** for [${DRONE_REPO_NAME}#${DRONE_COMMIT_SHA:0:8}](${DRONE_BUILD_LINK}) (${DRONE_BRANCH}) by ${DRONE_COMMIT_AUTHOR}.
---
kind: pipeline
type: kubernetes
name: build
steps:
# ADD linting
# ADD Build the app
# ADD Build the Docker image for the application
# ADD Deploy app with helm3
depends_on:
- notify start
trigger:
status:
- success
- failure
---
kind: pipeline
type: kubernetes
name: notify status
steps:
- name: notify status
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_home_server
roomid:
from_secret: matrix_room_id
username:
from_secret: matrix_username
password:
from_secret: matrix_password
accesstoken:
from_secret: matrix_access_token
template: |-
[${DRONE_REPO_NAME}]
Build **${DRONE_BUILD_STATUS}** for [${DRONE_REPO_NAME}#${DRONE_COMMIT_SHA:0:8}](${DRONE_BUILD_LINK}) (${DRONE_BRANCH}) by ${DRONE_COMMIT_AUTHOR}.
when:
status:
- success
- failure
depends_on:
- build
trigger:
status:
- success
- failure