Skip to content
Snippets Groups Projects

Bug/fix pipeline bug

Merged Andreas Kluge Svendsrud requested to merge bug/fix-pipeline-bug into main
1 file
+ 22
14
Compare changes
  • Side-by-side
  • Inline
+ 22
14
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