From 9fd9dc0b9214cb9ae70cde880f26e23197745305 Mon Sep 17 00:00:00 2001 From: Ramy Shurafa Date: Sun, 17 Dec 2023 22:16:29 +0300 Subject: [PATCH] using compose file 2 --- .github/workflows/ec2-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ec2-deploy.yml b/.github/workflows/ec2-deploy.yml index 7a107b3..1b7eaa0 100644 --- a/.github/workflows/ec2-deploy.yml +++ b/.github/workflows/ec2-deploy.yml @@ -57,11 +57,11 @@ jobs: run: | echo "${{ env.AWS_PRIVATE_KEY }}" > key.pem chmod 600 key.pem + - name: Pull Docker image + run: | + ssh -o StrictHostKeyChecking=no -i key.pem ${{ env.VM_IP }} 'docker pull ramyshurafa/strapi:latest' # OLD DEPLOYMENT STEPS - # - name: Pull Docker image - # run: | - # ssh -o StrictHostKeyChecking=no -i key.pem ${{ env.VM_IP }} 'docker pull ramyshurafa/strapi:latest' # - name: Stop running container # run: | # ssh -o StrictHostKeyChecking=no -i key.pem ${{ env.VM_IP }} 'docker stop strapi || true'