Skip to content

Instantly share code, notes, and snippets.

@efi-mk
Created July 23, 2018 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efi-mk/ae128a2b0e24acbd75d62a267a9c1ba0 to your computer and use it in GitHub Desktop.
Save efi-mk/ae128a2b0e24acbd75d62a267a9c1ba0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
if [ -z "$1" ]
then
echo "Missing project name, please choose one..."
firebase list
exit 1
else
if [ -z "${FIRESTORE_TOKEN}" ]
then
firebase -P ${1} deploy --only firestore:rules
else
echo "CI commit"
firebase -P ${1} --token ${FIRESTORE_TOKEN} deploy --only firestore:rules
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment