Skip to content

Instantly share code, notes, and snippets.

@mdobydullah
Created February 8, 2020 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mdobydullah/f867d5e829aeaa327f4777f8f34c65db to your computer and use it in GitHub Desktop.
Save mdobydullah/f867d5e829aeaa327f4777f8f34c65db to your computer and use it in GitHub Desktop.
GitLab CI configuration for auto-deployment of Vue.js to S3: https://s.mynotepaper.com/y1E4
stages:
- build
- deploy
# build stage
build_app:
image: node:alpine
stage: build
only:
- master
script:
- npm install
- npm run build
cache:
paths:
- node_modules/
artifacts:
paths:
# build folder
- dist/
expire_in: 1 hour
# production stage
production:
image: python:alpine
stage: deploy
only:
- master
script:
- pip install awscli
- aws s3 sync ./dist s3://YOUR_BUCKET_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment