Skip to content

Commit

Permalink
🚚 cd: set env file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPetros committed Jun 27, 2024
1 parent 029237e commit a59e662
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ jobs:
key: ${{ secrets.SERVER_KEY }}
script: |
cd ~/smart-farming-scp
env_file_string=$(echo $ENV_FILE)
echo $env_file_string | tr ' ' '\n' | sed 's/\([^=]\+\)=\([^ ]\+\)/\1=\2/' > ~/smart-farming-scp/.env
docker compose up -d

0 comments on commit a59e662

Please sign in to comment.