This commit is contained in:
parent
5d46ac12aa
commit
df5de2dac3
|
@ -50,7 +50,7 @@ steps:
|
||||||
- ssh -p21022 -o StrictHostKeyChecking=accept-new -i /root/.ssh/id_rsa.kubehost mtc@bosub-kub-int.metacoaching.pro "hostname"
|
- ssh -p21022 -o StrictHostKeyChecking=accept-new -i /root/.ssh/id_rsa.kubehost mtc@bosub-kub-int.metacoaching.pro "hostname"
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: pluie/alpine
|
image: bash:4.4
|
||||||
environment:
|
environment:
|
||||||
ZULIP_HOST: https://zulip.meta-tech.academy
|
ZULIP_HOST: https://zulip.meta-tech.academy
|
||||||
ZULIP_STREAM: gitea
|
ZULIP_STREAM: gitea
|
||||||
|
@ -61,13 +61,14 @@ steps:
|
||||||
ZULIP_TKN:
|
ZULIP_TKN:
|
||||||
from_secret: ZULIP_TOKEN
|
from_secret: ZULIP_TOKEN
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache curl
|
||||||
- if [ "${DRONE_BUILD_STATUS}" != "success" ]; then export ZULIP_STATUS=":prohibited:"; fi
|
- if [ "${DRONE_BUILD_STATUS}" != "success" ]; then export ZULIP_STATUS=":prohibited:"; fi
|
||||||
- export ZULIP_MESSAGE=$(echo -n ${DRONE_COMMIT_MESSAGE})
|
- export ZULIP_MESSAGE=$${DRONE_COMMIT_MESSAGE:-2})
|
||||||
- export SHORT_COMMIT=$${DRONE_COMMIT:0:7}
|
- export SHORT_COMMIT=$${DRONE_COMMIT:0:7}
|
||||||
- echo $SHORT_COMMIT
|
- echo $SHORT_COMMIT
|
||||||
- echo $ZULIP_STATUS
|
- echo $ZULIP_STATUS
|
||||||
- echo $ZULIP_MESSAGE
|
- echo $ZULIP_MESSAGE
|
||||||
- bash -c "echo ok"
|
- echo ok
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: deps
|
- name: deps
|
||||||
|
|
Loading…
Reference in New Issue
Block a user