Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sinologie Anki Pack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
kartenaale
Sinologie Anki Pack
Commits
900f668d
Commit
900f668d
authored
1 year ago
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
feat: first attempt at automatic tagging on main
parent
42e78c52
No related branches found
No related tags found
1 merge request
!2
feat: first attempt at automatic tagging on main
Pipeline
#9587
failed
1 year ago
Stage: lint
Stage: build
Stage: publish
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+20
-0
20 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
with
22 additions
and
1 deletion
.gitlab-ci.yml
+
20
−
0
View file @
900f668d
...
...
@@ -3,6 +3,7 @@ image: durcheinander/sinologie-anki-pack-build:latest
stages
:
-
lint
-
build
-
publish
default
:
cache
:
...
...
@@ -29,3 +30,22 @@ build-release:
# release both the archive and the uncompressed build directory
# (sinologie-anki-pack-*.zip would release just the zip)
-
sinologie-anki-pack-*
publish-package-json-version-as-git-tag
:
stage
:
publish
only
:
refs
:
-
main
script
:
-
NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4)
-
MATCHING_GIT_TAG=$(git tag | grep ^NPM_VERSION$)
-
if [ -z $MATCHING_GIT_TAG ]; then
-
echo adding git tag for first commit on main with NPM version ${NPM_VERSION}
-
git remote remove origin
-
git remote add origin https://oauth:${REPOSITORY_ACCESS_TOKEN}@gitlab.phaidra.org/kartenaale/sinologie-anki-pack.git
-
git config user.email Cao Cao
-
git config user.name cao.cao@ci.kartenaale
-
git tag -a $NPM_VERSION -m "Release $NPM_VERSION"
-
else
-
'
echo
package-json-tag:
keeping
older
tag
for
$NPM_VERSION'
-
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
1
View file @
900f668d
...
...
@@ -10,6 +10,7 @@ pipenv \
nodejs
\
npm
\
make
\
zip
zip
\
git
RUN
npm
install
--global
yarn
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