Commit 9072101d authored by leeokhee's avatar leeokhee

Update .gitlab-ci.yml

parent 0ad49d97
Pipeline #133 canceled with stage
image: node:latest
pages:
stages:
- test
- build
- deploy
stage: deploy
cache:
paths:
- node_modules/
script:
include:
template: Serverless.gitlab-ci.yml
- mkdir .public
test:
script:
- npm install
- npm test
- cp -r * .public
build:
extends: .serverless:build:image
- mv .public public
deploy_staging:
stage: deploy
extends: .serverless:deploy:image
artifacts:
paths:
- public
deploy_prod:
stage: deploy
extends: .serverless:deploy:image
environment:
name: production
when: manual
only:
- master
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment