From ecccc4292de7c6eb50f0c5886b05c03598943b64 Mon Sep 17 00:00:00 2001 From: Taras Petriichuk Date: Fri, 8 Dec 2023 00:55:56 +0200 Subject: [PATCH] update --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1660af8..7fb47ce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,4 +32,6 @@ jobs: docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - name: Pull and Start run: | - scp -o StrictHostKeyChecking=no docker-compose-prod.yml ${{ secrets.INSTANCE_USER }}@${{ secrets.INSTANCE_IP_ADDRESS }}:./ + echo "${{ secrets.PROD_DEPLOY_KEY }}" > dev.key + chmod 600 ~/.ssh/dev.key + scp -i dev.key -o StrictHostKeyChecking=no docker-compose-prod.yml ${{ secrets.INSTANCE_USER }}@${{ secrets.INSTANCE_IP_ADDRESS }}:./