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

This commit is contained in:
Mahdi Abu Yasmine 2023-12-14 01:00:06 +01:00
parent 31d087b43d
commit e98b104683

View File

@ -30,7 +30,7 @@ steps:
commands:
- export msg=${DRONE_COMMIT_MESSAGE}
- export msg="${msg:0:10}"
- /bin/bash -c "curl -s -k -X POST https://zulip.meta-tech.academy/api/v1/messages -u drone-bot@zulip.meta-tech.academy:iIm8Hc2VuvK06iDxUODUIndlRu6As6bO --data-urlencode type=stream --data-urlencode 'to=\"gitea\"' --data-urlencode topic=build --data-urlencode content=\"build n° ${DRONE_BUILD_NUMBER} - ${DRONE_REPO}/${DRONE_REPO_BRANCH}/${DRONE_COMMIT} by ${DRONE_COMMIT_AUTHOR} > ${DRONE_BUILD_STATUS} < $$msg ...\""
- /bin/bash -c "curl -s -k -X POST https://zulip.meta-tech.academy/api/v1/messages -u drone-bot@zulip.meta-tech.academy:iIm8Hc2VuvK06iDxUODUIndlRu6As6bO --data-urlencode type=stream --data-urlencode 'to=\"gitea\"' --data-urlencode topic=build --data-urlencode content=\"build n° ${DRONE_BUILD_NUMBER} - ${DRONE_REPO}/${DRONE_REPO_BRANCH}/${DRONE_COMMIT} by ${DRONE_COMMIT_AUTHOR} > ${DRONE_BUILD_STATUS} < $${msg} ...\""
- name: deploy code
image: appleboy/drone-ssh
@ -41,7 +41,7 @@ steps:
host: bosub-kub-int.metacoaching.pro
username: mtc
port: 21022
key_path: /root/drone_rsa
key_path: /root/drone_rsa/id_rsa.kubehost
script:
- echo "Target host name :\ `hostname`"
@ -50,5 +50,5 @@ volumes:
temp: {}
- name: ssh_key
host:
path: /home/repo/drone/id_rsa.kubehost
path: /home/repo/drone