Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
d-inkmap
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
pub
Géomatique
Descartes
d-inkmap
Commits
48a2a789
Commit
48a2a789
authored
2 years ago
by
Gaelle.Barris
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
456a1eac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+64
-0
64 additions, 0 deletions
.gitlab-ci.yml
with
64 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
64
−
0
View file @
48a2a789
image
:
node:19.1.0
stages
:
-
build
-
publish
cache
:
paths
:
-
node_modules/
build
:
stage
:
build
script
:
-
|
echo "
@descartes:registry=https://${CI_SERVER_HOST}/api/v4/projects/8282/packages/npm/
//${CI_SERVER_HOST}/api/v4/projects/8282/packages/npm/:_authToken=${CI_JOB_TOKEN}
" > .npmrc
-
npm install --force
-
npm run build
artifacts
:
expire_in
:
10 min
paths
:
-
dist/
only
:
-
develop
-
main
-
tags
publish-gitlab-registry-private
:
stage
:
publish
dependencies
:
-
build
script
:
-
|
echo "
@descartes:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}
" > .npmrc
-
npm publish
artifacts
:
expire_in
:
10 min
paths
:
-
dist/
only
:
-
tags
publish-gitlab-registry-public
:
stage
:
publish
needs
:
[
"
publish-gitlab-registry-private"
]
script
:
-
|
echo "
@descartes:registry=https://${CI_SERVER_HOST}/api/v4/projects/17127/packages/npm/
//${CI_SERVER_HOST}/api/v4/projects/17127/packages/npm/:_authToken=${CI_JOB_TOKEN}
" > .npmrc
-
npm publish
artifacts
:
expire_in
:
10 min
paths
:
-
dist/
only
:
-
tags
when
:
manual
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