Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ci Files
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
Model registry
Operate
Environments
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
digicon-webxr-store
Ci Files
Commits
f7b1108a
Commit
f7b1108a
authored
Apr 5, 2024
by
Eskudero Gurrutxaga, Ibon
Browse files
Options
Downloads
Patches
Plain Diff
use connection yaml
parent
edd98cde
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
npm-packages/artifactory_built.yml
+8
-7
8 additions, 7 deletions
npm-packages/artifactory_built.yml
npm-packages/build_typescript.yml
+12
-24
12 additions, 24 deletions
npm-packages/build_typescript.yml
with
20 additions
and
31 deletions
npm-packages/artifactory_built.yml
+
8
−
7
View file @
f7b1108a
#do artifactory connections
include
:
'
/npm-packages/artifactory_connect.yml'
artifactory
:
artifactory
:
stage
:
deploy
stage
:
deploy
tags
:
-
docker
image
:
$ACR_URL/node:18.12.0
image
:
$ACR_URL/node:18.12.0
#needed to restore the artifats from the build stage
dependencies
:
dependencies
:
-
build
-
build
# avoid restoring git repository
variables
:
variables
:
GIT_STRATEGY
:
none
GIT_STRATEGY
:
none
script
:
script
:
#set root user
-
npm -g config set user root
# install jfrog cli. Use cache on .npm folder
-
npm install -g jfrog-cli-go --cache .npm --prefer-offline
#create a publish package
#create a publish package
-
jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
-
jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
# save environment variables into thepackage
# save environment variables into thepackage
-
jfrog rt bce $CI_PROJECT_NAME $CI_JOB_ID
-
jfrog rt bce $CI_PROJECT_NAME $CI_JOB_ID
# publish the package to artifactory
# publish the package to artifactory
-
jfrog rt bp $CI_PROJECT_NAME $CI_JOB_ID
-
jfrog rt bp $CI_PROJECT_NAME $CI_JOB_ID
tags
:
-
docker
only
:
only
:
-
tags
-
tags
\ No newline at end of file
This diff is collapsed.
Click to expand it.
npm-packages/build_typescript.yml
+
12
−
24
View file @
f7b1108a
cache
:
#do artifactory connections
untracked
:
true
include
:
'
/npm-packages/artifactory_connect.yml'
key
:
npm
policy
:
pull-push
paths
:
-
dist/
-
root/.jfrog/
-
.npm/
-
usr/local/lib/node_modules/
build
:
build
:
image
:
$ACR_URL/node:18.12.0
stage
:
build
stage
:
build
# cache build for the next jobs
artifacts
:
artifacts
:
untracked
:
true
expire_in
:
1 day
expire_in
:
1 day
tags
:
paths
:
-
docker
-
dist/**/*
image
:
$ACR_URL/node:18.12.0
script
:
script
:
#set root user
-
npm -g config set user root
# install jfrog cli. Use cache on .npm folder
-
npm install -g jfrog-cli-go --cache .npm --prefer-offline
# load artifactory config from base64 encoded string
-
jfrog config import $ARTIFACTORY_CI_CONFIGURATION
# set server id
-
jfrog rt use $ACR_SERVER_ID
# install dependencies
# install dependencies
-
jfrog rt npm-install --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
-
jfrog rt npm-install --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
# build the package
# build the package
-
npm run build
-
npm run build
tags
:
-
docker
only
:
only
:
-
tags
-
tags
\ No newline at end of file
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