Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-2024-07
frontend
Commits
bd68fa6d
Commit
bd68fa6d
authored
1 year ago
by
Andreas Kluge Svendsrud
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug/fix-pipeline-bug' into 'main'
Bug/fix pipeline bug See merge request
!43
parents
cf192b0e
b7124f27
No related branches found
No related tags found
1 merge request
!43
Bug/fix pipeline bug
Pipeline
#279609
failed
1 year ago
Stage: install
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-14
22 additions, 14 deletions
.gitlab-ci.yml
with
22 additions
and
14 deletions
.gitlab-ci.yml
+
22
−
14
View file @
bd68fa6d
image
:
node:alpine
# Much smaller than other variants, faster and more resource effective
stages
:
-
install_dependencies
-
build_project
image
:
node:alpine
cache
:
key
:
"
${CI_COMMIT_REF_SLUG}"
# Branch-specific cache keys to have separate caches across branches.
key
:
"
${CI_COMMIT_REF_SLUG}"
paths
:
-
node_modules/
-
build/
stages
:
-
install
-
build
install_dependencies
:
stage
:
install
_dependencies
stage
:
install
script
:
-
npm ci
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
node_modules/
policy
:
push
build_project
:
stage
:
build_project
before_script
:
-
ls -l node_modules/.bin
-
whoami
stage
:
build
script
:
-
npm ci
-
npm run build
after_script
:
-
ls -l
dependencies
:
-
install_dependencies
cache
:
key
:
"
${CI_COMMIT_REF_SLUG}"
paths
:
-
node_modules/
policy
:
pull
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