This commit is contained in:
@@ -16,12 +16,11 @@ tasks:
|
||||
cd wish
|
||||
mix test
|
||||
- deploy: |
|
||||
if [ $GIT_REF = "main" ]; then
|
||||
if [ $GIT_REF = "refs/heads/ci" ]; then
|
||||
curl -L https://fly.io/install.sh | sh
|
||||
export FLYCTL_INSTALL="/root/.fly"
|
||||
export PATH="$FLYCTL_INSTALL/bin:$PATH"
|
||||
|
||||
cd wish
|
||||
fly deploy
|
||||
/root/.fly/flyctl deploy
|
||||
else
|
||||
echo "nothing to do"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user