Created
February 8, 2020 19:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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