From 2ae440535ebc8b2456a4087b998a82a164973b17 Mon Sep 17 00:00:00 2001 From: Alvaro Maldonado Mateos Date: Mon, 19 Feb 2024 05:09:38 +0100 Subject: [PATCH] Testing more manual deployment --- .github/workflows/deploy-api-client.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy-api-client.yml b/.github/workflows/deploy-api-client.yml index 8a040c2..de4e4a4 100644 --- a/.github/workflows/deploy-api-client.yml +++ b/.github/workflows/deploy-api-client.yml @@ -24,22 +24,15 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + with: + path: substrait-fiddle - - name: Add env variables - uses: appleboy/ssh-action@v1.0.3 - env: - VITE_SESSION_SECRET: ${{ secrets.VITE_SESSION_SECRET }} + - name: Copy files to remote repository + uses: appleboy/scp-action@v0.1.7 with: host: ${{ secrets.DEPLOY_HOST_DNS }} username: ${{ secrets.DEPLOY_USERNAME }} key: ${{ secrets.DEPLOY_SSH_KEY }} - envs: VITE_SESSION_SECRET - script: export VITE_SESSION_SECRET=$VITE_SESSION_SECRET - - - name: Docker-Compose Remote Deployment - uses: matiasnu/github-action-ssh-docker-compose@7fb3aa789f898b63c3722e6beb2dafa1a70f0e22 # v2.0.3 - with: - ssh_host: ${{ secrets.DEPLOY_HOST_DNS }} - ssh_private_key: ${{ secrets.DEPLOY_SSH_KEY }} - ssh_user: ${{ secrets.DEPLOY_USERNAME }} - docker_compose_prefix: deploy + rm: true + source: "substrait-fiddle/*" + target: ~/deployment \ No newline at end of file