From 7441ce314086448d3ed3385f283c51bfacef9262 Mon Sep 17 00:00:00 2001 From: mahdi Date: Thu, 14 Dec 2023 23:39:55 +0100 Subject: [PATCH] devops - drone test --- .drone.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5a225ab..32507e8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -63,12 +63,7 @@ steps: commands: - apk add --no-cache curl - if [ "${DRONE_BUILD_STATUS}" != "success" ]; then export ZULIP_STATUS=":prohibited:"; fi - - export ZULIP_MESSAGE=$${DRONE_COMMIT_MESSAGE:-2} - - export SHORT_COMMIT=$${DRONE_COMMIT:0:7} - - echo $SHORT_COMMIT - - echo $ZULIP_STATUS - - echo $ZULIP_MESSAGE - - echo ok + - curl -X POST ${ZULIP_HOST}/api/v1/messages -u ${ZULIP_USER}:${ZULIP_TKN} --data-urlencode type=stream --data-urlencode 'to=\"${ZULIP_STREAM}\"' --data-urlencode topic=${ZULIP_TOPIC} --data content=\"${ZULIP_STATUS} **[build %23${DRONE_BUILD_NUMBER}](${DRONE_BUILD_LINK})**%0A> **${DRONE_BUILD_EVENT}** event on **${DRONE_COMMIT_BRANCH}** branch *by* **${DRONE_COMMIT_AUTHOR}** ([$${DRONE_COMMIT:0:7}]($${DRONE_REMOTE_URL:0:-4}/commit/${DRONE_COMMIT}))%0A> $${DRONE_COMMIT_MESSAGE:-2} volumes: - name: deps