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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
digicon-webxr-store
Ci Files
Commits
ca783e2b
Commit
ca783e2b
authored
1 year ago
by
Eskudero Gurrutxaga, Ibon
Browse files
Options
Downloads
Patches
Plain Diff
revert changes
parent
b7506422
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
npm-packages/artifactory_built.yml
+7
-11
7 additions, 11 deletions
npm-packages/artifactory_built.yml
npm-packages/build_typescript.yml
+8
-12
8 additions, 12 deletions
npm-packages/build_typescript.yml
with
15 additions
and
23 deletions
npm-packages/artifactory_built.yml
+
7
−
11
View file @
ca783e2b
...
...
@@ -2,21 +2,17 @@ artifactory:
stage
:
deploy
tags
:
-
docker
image
:
$ACR_URL/node:1
8.12.0
image
:
$ACR_URL/node:1
4
dependencies
:
-
build
variables
:
GIT_STRATEGY
:
none
-
build_typescript
script
:
#set root user
-
npm -g config set user root
# install jfrog cli
-
npm
install
-g jfrog-cli-go
#create a publish package
-
jfrog rt c import $ARTIFACTORY_CI_CONFIGURATION
-
jfrog rt use $ACR_SERVER_ID
-
jfrog rt ping
-
jfrog rt
npm
-
install
--build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
-
npm run build
-
jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
# save environment variables into thepackage
-
jfrog rt bce $CI_PROJECT_NAME $CI_JOB_ID
# publish the package to artifactory
-
jfrog rt bp $CI_PROJECT_NAME $CI_JOB_ID
only
:
-
tags
\ No newline at end of file
This diff is collapsed.
Click to expand it.
npm-packages/build_typescript.yml
+
8
−
12
View file @
ca783e2b
before_script
:
-
npm -g config set user root
-
npm install -g jfrog-cli-go
cache
:
paths
:
-
node_modules/
-
dist/
-
root/.jfrog/
build
:
stage
:
build
artifacts
:
...
...
@@ -10,19 +13,12 @@ build:
expire_in
:
1 day
tags
:
-
docker
image
:
$ACR_URL/node:1
8.12.0
image
:
$ACR_URL/node:1
4
script
:
#set root user
-
npm -g config set user root
# install jfrog cli
-
npm install -g jfrog-cli-go
# load artifactory config from base64 encoded string
-
jfrog config import $ARTIFACTORY_CI_CONFIGURATION
# set server id
-
jfrog rt c import $ARTIFACTORY_CI_CONFIGURATION
-
jfrog rt use $ACR_SERVER_ID
# install dependencies
-
jfrog rt ping
-
jfrog rt npm-install --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
# build the package
-
npm run build
only
:
-
tags
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