Created
September 5, 2018 07:41
-
-
Save yaapis/c743938c7c96c8fc883759e9625f6cee to your computer and use it in GitHub Desktop.
.gitlab-ci.yml for Vue + Firebase
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
before_script: | |
- node -v | |
- npm -v | |
stages: | |
- build | |
- deploy | |
Build: | |
image: node:8 | |
stage: build | |
script: | |
- npm install --progress=false | |
- npm run build | |
artifacts: | |
expire_in: 1 day | |
paths: | |
- dist | |
- node_modules/ | |
only: | |
- master | |
Deploy: | |
image: node:8 | |
stage: deploy | |
script: | |
- ./node_modules/.bin/firebase deploy --only hosting | |
only: | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment