1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/bin/codeship_deploy

8 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
ESCAPED_EMAIL="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' $GIGALIXIR_EMAIL)"
git fetch --unshallow origin
git remote add gigalixir https://$ESCAPED_EMAIL:$GIGALIXIR_API_KEY@git.gigalixir.com/$GIGALIXIR_APP_NAME.git
git push -f gigalixir HEAD:refs/heads/master