Skip to content
Snippets Groups Projects
Commit 1d9cd7ac authored by Philipp Stadler's avatar Philipp Stadler
Browse files

feat: add whatsapp

parent 2f38ecbe
Branches
No related tags found
No related merge requests found
image: durcheinander/export-apkgs:1.0.0
image: durcheinander/pack-build:1.0.0
stages:
- build
- release
- notify
build:
image: durcheinander/export-apkgs:1.0.0
stage: build
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
......@@ -92,6 +94,7 @@ release-package-json-version-as-git-tag:
- if: $CI_COMMIT_BRANCH == "main"
# we don't need anything in node_modules or python, so don't fetch the cache
cache: []
resource_group: repository
script:
- NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4)
# || exit_code=$? is the recommended way to ignore a non-zero exit code
......@@ -116,8 +119,6 @@ create-gitlab-release:
needs:
- job: build
artifacts: true
- job: changelog
artifacts: true
- job: release-notes
artifacts: true
variables:
......@@ -135,3 +136,22 @@ create-gitlab-release:
links:
- name: 'Browse all APKGS…'
url: '$ARTIFACTS_URL'
send-release-notes-to-group:
stage: notify
resource_group: whatsapp
rules:
- if: $CI_COMMIT_TAG
needs:
- job: release-notes
artifacts: true
variables:
# we just need the artifacts and don't need up-to-date source, so don't even fetch
GIT_STRATEGY: none
MUDSLIDE_CACHE_FOLDER: './mudslide_cache'
cache:
- mudslide_cache
script:
- mkdir -p mudslide_cache
- mudslide login
- mudslide send $WHATSAPP_RELEASE_NOTIFY_RECIPIENT "$(cat RELEASE_NOTES.md)"
FROM debian:12.4
RUN apt-get update && apt-get install -y \
faketime \
git \
make \
nodejs \
npm \
pipenv \
python3 \
python3-pip \
zip \
curl
RUN npm install --global \
yarn \
mudslide
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment