Skip to content
Snippets Groups Projects
Commit 726eeb92 authored by Eskudero Gurrutxaga, Ibon's avatar Eskudero Gurrutxaga, Ibon
Browse files

fix

parent eee0bef2
Branches
Tags
No related merge requests found
#do artifactory connections #do artifactory connections
include: include:
local: local: 'artifactory_connect.yml'
- 'npm-packages/artifactory_connect.yml'
artifactory: artifactory:
stage: deploy stage: deploy
image: $ACR_URL/node:18.12.0 image: $ACR_URL/node:18.12.0
...@@ -13,6 +11,8 @@ artifactory: ...@@ -13,6 +11,8 @@ artifactory:
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: script:
# connect job from artifactory_connect.yml
- !reference [connect]
#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
......
connect: connect:
before_script: script:
#set root user #set root user
- npm -g config set user root - npm -g config set user root
# install jfrog cli. Use cache on .npm folder # install jfrog cli. Use cache on .npm folder
......
#do artifactory connections #do artifactory connections
include: include:
local: local: 'artifactory_connect.yml'
- 'npm-packages/artifactory_connect.yml'
build: build:
image: $ACR_URL/node:18.12.0 image: $ACR_URL/node:18.12.0
stage: build stage: build
...@@ -12,6 +10,8 @@ build: ...@@ -12,6 +10,8 @@ build:
paths: paths:
- dist/**/* - dist/**/*
script: script:
# connect job from artifactory_connect.yml
- !reference [connect]
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment