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

feat: add whatsapp

parent 2f38ecbe
No related branches found
No related tags found
No related merge requests found
image: durcheinander/export-apkgs:1.0.0 image: durcheinander/pack-build:1.0.0
stages: stages:
- build - build
- release - release
- notify
build: build:
image: durcheinander/export-apkgs:1.0.0
stage: build stage: build
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"
...@@ -92,6 +94,7 @@ release-package-json-version-as-git-tag: ...@@ -92,6 +94,7 @@ release-package-json-version-as-git-tag:
- if: $CI_COMMIT_BRANCH == "main" - if: $CI_COMMIT_BRANCH == "main"
# we don't need anything in node_modules or python, so don't fetch the cache # we don't need anything in node_modules or python, so don't fetch the cache
cache: [] cache: []
resource_group: repository
script: script:
- NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4) - 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 # || exit_code=$? is the recommended way to ignore a non-zero exit code
...@@ -116,8 +119,6 @@ create-gitlab-release: ...@@ -116,8 +119,6 @@ create-gitlab-release:
needs: needs:
- job: build - job: build
artifacts: true artifacts: true
- job: changelog
artifacts: true
- job: release-notes - job: release-notes
artifacts: true artifacts: true
variables: variables:
...@@ -135,3 +136,22 @@ create-gitlab-release: ...@@ -135,3 +136,22 @@ create-gitlab-release:
links: links:
- name: 'Browse all APKGS…' - name: 'Browse all APKGS…'
url: '$ARTIFACTS_URL' 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