Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Anki Pack Common CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kartenaale
Build
Anki Pack Common CI
Commits
1d9cd7ac
Commit
1d9cd7ac
authored
10 months ago
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
feat: add whatsapp
parent
2f38ecbe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+23
-3
23 additions, 3 deletions
.gitlab-ci.yml
pack-build/Dockerfile
+16
-0
16 additions, 0 deletions
pack-build/Dockerfile
with
39 additions
and
3 deletions
.gitlab-ci.yml
+
23
−
3
View file @
1d9cd7ac
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)"
This diff is collapsed.
Click to expand it.
pack-build/Dockerfile
0 → 100644
+
16
−
0
View file @
1d9cd7ac
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment