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
Merge requests
!43
Bug/fix pipeline bug
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bug/fix pipeline bug
bug/fix-pipeline-bug
into
main
Overview
0
Commits
4
Pipelines
3
Changes
1
Merged
Andreas Kluge Svendsrud
requested to merge
bug/fix-pipeline-bug
into
main
1 year ago
Overview
0
Commits
4
Pipelines
3
Changes
1
Expand
Updated pipeline to utilize cache more effectively and now actually fixed bug caused by runner #217
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
b7124f27
4 commits,
1 year ago
1 file
+
22
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
22
−
14
Options
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
Loading