From cf53d161cc3e4d6fd05fbc12eb6d6fa0db4c9c34 Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Thu, 31 Aug 2023 23:53:30 +0300 Subject: [PATCH] Add webhook to CI and update image version --- .gitlab-ci.yml | 3 ++- sendZulipMessage.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 sendZulipMessage.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dc43b4220..6ebe9d166 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: "docker.io/abb128/android-build:latest@sha256:8df16e2badb5e42d2f5e3862683c7ff0ebdcc348affe059385e42eebef79302f" + image: "docker.io/abb128/android-build:v2@sha256:4e544373291dc0866fcfc03a2894eda7e3c939e3686ddf3c45d933433c49b49a" variables: GIT_SUBMODULE_STRATEGY: recursive @@ -16,6 +16,7 @@ build: - ./setUpPropertiesCI.sh - gradle assembleRelease -s - mv build/outputs/apk/release/latinime-release.apk ./LatinIME-release-$CI_COMMIT_SHORT_SHA.apk + - ./sendZulipMessage.sh "Alpha Keyboard Build - https://gitlab.futo.org/alex/latinime/-/jobs/$CI_JOB_ID/artifacts/raw/LatinIME-release-$CI_COMMIT_SHORT_SHA.apk" artifacts: name: "LatinIME-release-$CI_COMMIT_SHORT_SHA" paths: diff --git a/sendZulipMessage.sh b/sendZulipMessage.sh new file mode 100755 index 000000000..078ef76eb --- /dev/null +++ b/sendZulipMessage.sh @@ -0,0 +1,2 @@ +#!/bin/sh +curl -X POST https://zulip.futo.org/api/v1/messages -u ${ZULIP_WEBHOOK?Need zulip webhook} --data-urlencode type=stream --data-urlencode 'to="Android Keyboard"' --data-urlencode topic=builds --data-urlencode "content=${1?Need content}" \ No newline at end of file