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 }}:./