This commit is contained in:
@@ -37,7 +37,7 @@ jobs:
|
||||
echo "Copy migrations files 📑"
|
||||
scp -r ./migrations ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations
|
||||
|
||||
ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} '
|
||||
ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "\
|
||||
set -e
|
||||
cd /var/www/greenlight
|
||||
|
||||
@@ -45,8 +45,7 @@ jobs:
|
||||
migrate -path=./migrations -database "$GREENLIGHT_DB_DSN" up
|
||||
|
||||
echo "Cleaning 🧹"
|
||||
cd .. && rm -rf greenlight
|
||||
'
|
||||
cd .. && rm -rf greenlight \
|
||||
"
|
||||
|
||||
- name: Build API
|
||||
|
||||
Reference in New Issue
Block a user