Skip to content

Instantly share code, notes, and snippets.

@Y2017
Created May 21, 2017 08:44
Show Gist options
  • Save Y2017/365d7d85fa0cb8803a6393df1cde3e8e to your computer and use it in GitHub Desktop.
Save Y2017/365d7d85fa0cb8803a6393df1cde3e8e to your computer and use it in GitHub Desktop.
// CACHE
//cached between jobs
// put it inside job or globally
// Locally defined cache overrides globally defined options
// cache per job avec key: "$CI_JOB_NAME"
// per-branch caching : key: "$CI_COMMIT_REF_NAME"
// per-job and per-branch caching: key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME"
// per-branch and per-stage caching : key: "$CI_JOB_STAGE/$CI_COMMIT_REF_NAME"
ou par build :
cache:
key: "$CI_BUILD_REF_NAME"
untracked: true
paths:
- node_modules/
- dist/
before_script:
- npm install
- npm i --save "....orilab_dicom"
be careful when using special characters: :, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, !, %, @, `.
script:
- 'npm run dist'
with package.json :
npm run dist : ng build --progress=false
when :
- Define when to run job. Can be on_success, on_failure, always or manual
ou
STAGE
// build, test and deploy are allowed to be used as job's stage by default.
// If a job doesn't specify a stage, the job is assigned the test stage
// Jobs of the same stage are executed in parallel
stages:
- inject_orilab_dicom
- build_dist
- dev
(- test)
DOCKER
image: ruby:2.1
services:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment