Skip to content

Commit

Permalink
debug: scp env and list file
Browse files Browse the repository at this point in the history
  • Loading branch information
nischalstha9 committed Jul 19, 2024
1 parent 07bee4a commit 47fc332
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,22 @@ jobs:
- name: create env file
run: |
echo ${{ secrets.BACKEND_ENV_VARS }} > .env
- name: copy file via ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
source: ".env"
target: /srv/Projects/Drone-TM

- name: Deploy to VM
run: |
pwd
ls -alh
cat .env
source .env
docker compose --file docker-compose.vm.yml --env-file .env pull
docker compose --file docker-compose.vm.yml --env-file .env up \
Expand Down

0 comments on commit 47fc332

Please sign in to comment.