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