Skip to content

Commit

Permalink
test: scp-action
Browse files Browse the repository at this point in the history
  • Loading branch information
aryyawijaya committed Jul 17, 2024
1 parent 328c131 commit 7528394
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ jobs:
steps:
- name: Checkout to get docker compose & env file
uses: actions/checkout@v4
- name: SSH to server to deploy container
uses: appleboy/[email protected]
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_KEY }}
script: |
mkdir /app
- name: Copy docker compose & env file
uses: appleboy/[email protected]
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_KEY }}
source: './docker-compose.yaml,./.env'
source: 'docker-compose.yaml,.env'
target: /app
- name: SSH to server to deploy container
uses: appleboy/[email protected]
Expand Down

0 comments on commit 7528394

Please sign in to comment.