-
graham.smith authoredgraham.smith authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 1.68 KiB
image: alpine:latest
stages:
- build
- test
- staging
- deploy
include:
- project: "platform-one/private/big-bang/pipeline-templates"
ref: promote-static-sites
file: "/jobs/promote/copy-static-site.yml"
variables:
SITE_NAME: platform1-site
DEPLOY_REPO: https://jdceanfa:${CI_STATIC_SITES_TOKEN}@repo1.dsop.io/platform-one/apps/static-sites.git #<---- hate this (need to fix) - don't want to use tokens
.npm_template:
image: registry.dsop.io/platform-one/private/big-bang/pipeline-templates/ext-cypress:v0.2.0
lint code:
extends: .npm_template
stage: build
script:
- npm i
- npm run lint
tags:
- p1
unit tests:
extends: .npm_template
stage: test
script:
- npm i
- npm run test:unit
rules:
- if: '$CI_COMMIT_TAG == ""'
when: always
tags:
- p1
e2e tests:
extends: .npm_template
stage: test
script:
- npm i
- npm run test:e2e-ci
except:
- tags
tags:
- p1
#staging:
# image: registry.dsop.io/platform-one/private/big-bang/pipeline-templates/ext-cypress:v0.2.0
# extends: .staging-site
# script:
# - echo 'Publishing build outputs to staging'
# - npm install -D
# - npm run build
publish:
image: registry.dsop.io/platform-one/private/big-bang/pipeline-templates/ext-cypress:v0.2.0
extends: .copy-site
script:
- echo 'Publishing build outputs to MR for deployment'
- npm install -D
- npm run build
tags:
- p1
publish-staging:
image: registry.dsop.io/platform-one/private/big-bang/pipeline-templates/ext-cypress:v0.2.0
extends: .copy-staging-site
script:
- echo 'Publishing build outputs to MR for deployment'
- npm install -D
- npm run build-staging
tags:
- p1