Skip to content

Instantly share code, notes, and snippets.

@yaapis
Created September 5, 2018 07:41
Show Gist options
  • Save yaapis/c743938c7c96c8fc883759e9625f6cee to your computer and use it in GitHub Desktop.
Save yaapis/c743938c7c96c8fc883759e9625f6cee to your computer and use it in GitHub Desktop.
.gitlab-ci.yml for Vue + Firebase
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