From 1a26227897e773edf859325d14f3b04ddedd044b Mon Sep 17 00:00:00 2001 From: mahdi Date: Thu, 14 Dec 2023 00:52:09 +0100 Subject: [PATCH] devops - drone test --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3334e02..e077fa5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,8 +29,9 @@ steps: image: pluie/alpine commands: - export msg=${DRONE_COMMIT_MESSAGE} - - > - /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:0:10}...\"" + - 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}...\"" + volumes: - name: deps temp: {} \ No newline at end of file