From 75283941c7786d30c233e23746b646261dbdb070 Mon Sep 17 00:00:00 2001 From: aryya Date: Wed, 17 Jul 2024 13:22:21 +0700 Subject: [PATCH] test: scp-action --- .github/workflows/main.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a1fb88f..24d62b8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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/ssh-action@v1.0.3 + with: + host: ${{ secrets.VM_HOST }} + username: ${{ secrets.VM_USERNAME }} + key: ${{ secrets.VM_KEY }} + script: | + mkdir /app - name: Copy docker compose & env file uses: appleboy/scp-action@v0.1.7 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/ssh-action@v1.0.3