Skip to content

Instantly share code, notes, and snippets.

@Mattchewone
Created June 5, 2019 13:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Mattchewone/baa2989a6d38cebe7847391739728c07 to your computer and use it in GitHub Desktop.
Save Mattchewone/baa2989a6d38cebe7847391739728c07 to your computer and use it in GitHub Desktop.
Gatsby Gitlab YML
image: node:latest
stages:
- deploy
deploy-prod:
stage: deploy
only:
- master
script:
- npm i
- npm i -g gatsby-cli
- npm i -g firebase-tools
- gatsby build
- firebase use $PROJECT_ID --token $FIREBASE_TOKEN
- firebase deploy --only hosting -m "Pipe $CI_PIPELINE_ID Build $CI_BUILD_ID" --token $FIREBASE_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment