Skip to content

Commit

Permalink
try 102
Browse files Browse the repository at this point in the history
  • Loading branch information
AzizMukhtorjonov committed Jun 17, 2024
1 parent 241bcdd commit 97c8dad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ env:
SERVER_USER: ${{ secrets.SERVER_USER }}
SERVER_HOST: ${{ secrets.SERVER_HOST }}
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
ENVS: ${{ secrets.ENVS }}

jobs:
build-and-deploy:
Expand All @@ -28,7 +27,9 @@ jobs:

- name: Create .env file from JSON config
run: |
echo ${{ env.ENVS }} > .env
{
echo ${{ secrets['ENVS'] }}
} > .env
echo "Created .env file"
Expand All @@ -48,7 +49,7 @@ jobs:
mkdir -p /home/server/starter-kit
EOF
scp -r * $SERVER_USER@$SERVER_HOST:/home/server/starter-kit
scp .env $SERVER_USER@$SERVER_HOST:/home/server/starter-kit/.env
scp .env $SERVER_USER@$SERVER_HOST:/home/server/starter-kit/.env.docker
ssh -t $SERVER_USER@$SERVER_HOST << 'EOF'
cd /home/server/starter-kit
pwd
Expand Down

0 comments on commit 97c8dad

Please sign in to comment.