Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stages:
- - build
- - deploy
- build prod:
- image: node:10.15.0-stretch
- stage: build
- only:
- - tags
- script:
- - npm install
- # Build App
- - npm run build
- artifacts:
- paths:
- # Build folder
- - dist/
- expire_in: 1 hour
- deploy prod:
- image: python:latest
- stage: deploy
- only:
- - tags
- script:
- - pip install awscli
- - aws s3 sync ./dist s3://YOUR_BUCKET_NAME
- build stage:
- image: node:10.15.0-stretch
- stage: build
- only:
- - master
- script:
- - npm install
- # Build App
- - npm run build-dev
- artifacts:
- paths:
- # Build folder
- - dist/
- expire_in: 1 hour
- deploy stage:
- image: python:latest
- stage: deploy
- only:
- - master
- script:
- - pip install awscli
- - aws s3 sync ./dist s3://YOUR_DEV_BUCKET_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement