devops - drone test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mahdi Abu Yasmine 2023-12-14 23:35:55 +01:00
parent 5d46ac12aa
commit df5de2dac3

View File

@ -50,7 +50,7 @@ steps:
- ssh -p21022 -o StrictHostKeyChecking=accept-new -i /root/.ssh/id_rsa.kubehost mtc@bosub-kub-int.metacoaching.pro "hostname"
- name: notify
image: pluie/alpine
image: bash:4.4
environment:
ZULIP_HOST: https://zulip.meta-tech.academy
ZULIP_STREAM: gitea
@ -61,13 +61,14 @@ steps:
ZULIP_TKN:
from_secret: ZULIP_TOKEN
commands:
- apk add --no-cache curl
- 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}
- echo $SHORT_COMMIT
- echo $ZULIP_STATUS
- echo $ZULIP_MESSAGE
- bash -c "echo ok"
- echo ok
volumes:
- name: deps