Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
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
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Predators
Shopify
Tools
gitlab-ci
Commits
d3b2fb17
Commit
d3b2fb17
authored
1 year ago
by
Grzegorz Rola
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/prepare-assets' into 'main'
Feature/prepare assets See merge request
!10
parents
4b08eaf8
9602aee4
No related branches found
No related tags found
1 merge request
!10
Feature/prepare assets
Pipeline
#245635
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab-ci.yml
+5
-3
5 additions, 3 deletions
gitlab-ci.yml
with
5 additions
and
3 deletions
gitlab-ci.yml
+
5
−
3
View file @
d3b2fb17
...
@@ -11,6 +11,7 @@ variables:
...
@@ -11,6 +11,7 @@ variables:
STAGE_DEPLOY_USER
:
wlgmnfabmq
STAGE_DEPLOY_USER
:
wlgmnfabmq
STAGE_DEPLOY_DIR
:
"
"
STAGE_DEPLOY_DIR
:
"
"
RUN_AFTER_DEPLOY
:
"
pwd"
RUN_AFTER_DEPLOY
:
"
pwd"
PREDATORS_GROUP_ID
:
788
stages
:
stages
:
-
build
-
build
...
@@ -25,14 +26,15 @@ stages:
...
@@ -25,14 +26,15 @@ stages:
name
:
"
assets"
name
:
"
assets"
paths
:
paths
:
-
web/frontend/dist
-
web/frontend/dist
image
:
node:
19.6.0
image
:
node:
latest
stage
:
build
stage
:
build
interruptible
:
true
interruptible
:
true
script
:
script
:
-
if [ "$SHOPIFY_API_KEY" == "" ]; then echo "SHOPIFY_API_KEY is empty" ; exit 1; fi
-
if [ "$SHOPIFY_API_KEY" == "" ]; then echo "SHOPIFY_API_KEY is empty" ; exit 1; fi
-
cd web/frontend
-
cd web/frontend
-
npm config set -- //${CI_SERVER_HOST}/:_authToken=${CI_JOB_TOKEN}
-
npm config set -- //${CI_SERVER_HOST}/api/v4/groups/${PREDATORS_GROUP_ID}/-/packages/npm/:_authToken=${PREDATORS_DEPLOY_TOKEN}
-
npm config set @octolize:registry https://${CI_SERVER_HOST}/api/v4/packages/npm/
-
npm config set @octolize:registry=https://${CI_SERVER_HOST}/api/v4/groups/${PREDATORS_GROUP_ID}/-/packages/npm/
-
npm config list
-
npm install
-
npm install
-
npm run build
-
npm run build
...
...
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