Browse Source

new: pkg: added rocket.chat messaging

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
rc/16.0-MYC-INIT
Valentin Lab 5 years ago
committed by default
parent
commit
421735c7c7
  1. 30
      .drone.yml

30
.drone.yml

@ -45,6 +45,36 @@ steps:
release=$(cat release) release=$(cat release)
echo "PUSHED DOCKER IMAGE: docker.0k.io/mirror/odoo/$release" echo "PUSHED DOCKER IMAGE: docker.0k.io/mirror/odoo/$release"
echo "PUSHED GIT TAG: release/candidate/$release" echo "PUSHED GIT TAG: release/candidate/$release"
- name: rocket
## mirror of ref: mike1pol/drone-rocket
image: docker.0k.io/drone-rocket
settings:
url: {from_secret: ROCKETCHAT_URL}
user_id: {from_secret: ROCKETCHAT_USER_ID}
token: {from_secret: ROCKETCHAT_TOKEN}
channel: "#odoo_releases"
commands:
- release=$(cat release)
- |
## DRONE will substitute bash variables BEFORE bash
export COMMIT_MESSAGE=$(echo -e ${DRONE_COMMIT_MESSAGE} | head -n 1)
- |
export MESSAGE="{{#success build.status}}✅{{else}}❌{{/success}} Build {{build.status}} \
// *Summary:* $COMMIT_MESSAGE [ _${DRONE_COMMIT_AUTHOR_NAME}_ ]
build: [{{build.number}}]({{build.link}}) / branch: \`{{build.branch}}\` / \
commit: \`${DRONE_COMMIT_SHA:0:8}\`
{{#success build.status}}
*GIT TAG:* \`release/candidate/$release\` _(freezed version)_
*DOCKER IMAGES:*
- \`docker.0k.io/mirror/odoo/$release\` _(unique tag)_
- \`docker.0k.io/mirror/odoo:${DRONE_COMMIT_BRANCH//\//_}\` _(floating reference)_
Total Build time was $((DRONE_JOB_FINISHED - DRONE_JOB_STARTED))s
{{/success}}"
- rocket
when:
status:
- success
- failure
volumes: volumes:
- name: docker - name: docker

Loading…
Cancel
Save