Skip to content

Instantly share code, notes, and snippets.

@lgastler
Created March 14, 2022 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgastler/5068c2f38ccc6950e5ef36e71317a3c1 to your computer and use it in GitHub Desktop.
Save lgastler/5068c2f38ccc6950e5ef36e71317a3c1 to your computer and use it in GitHub Desktop.
stages:
- build
- prepare
- deploy
build:
stage: build
image: node:12
environment:
name: stage
script: |
npm ci
npm run eslint:ci
npx nx affected:build --all --prod
only:
refs:
- develop
- master
changes:
- apps/backend/**/*
- libs/ui/**/*
- package.json
- package-lock.json
artifacts:
expire_in: 1 week
paths:
- dist/
- apps/direflow/build
include:
- "/apps/backend/.gitlab-ci.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment