From 580538e142ad7b8f0347ccdcc107438a34c25a4a Mon Sep 17 00:00:00 2001 From: mahdi Date: Thu, 14 Dec 2023 23:05:00 +0100 Subject: [PATCH] devops - drone test --- .drone.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 051b16c..654b1db 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,13 +60,9 @@ steps: from_secret: ZULIP_BOT ZULIP_TKN: from_secret: ZULIP_TOKEN - GOARCH: amd64 commands: - if [ "${DRONE_BUILD_STATUS}" != "success" ]; then export ZULIP_STATUS=":prohibited:"; fi - - export SHORT_COMMIT="${DRONE_COMMIT:0:7}" - - export REMOTE_URL="${DRONE_REMOTE_URL:0:-4}" - - export ZULIP_MESSAGE=${DRONE_COMMIT_MESSAGE} - - 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}** ([${SHORT_COMMIT}](${REMOTE_URL}/commit/${DRONE_COMMIT}))%0A> ${ZULIP_MESSAGE}" + volumes: - name: deps