From aa5f0acd81aa1881afd42cf32452fbad6aa3a1b8 Mon Sep 17 00:00:00 2001 From: Ali Mehdi Date: Thu, 28 Mar 2024 15:24:23 +0500 Subject: [PATCH] updated ci cd --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 531795362..e254bd78a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,7 +78,7 @@ jobs: chmod 600 ssh_key.pem if [ ${{ github.ref }} = 'refs/heads/develop' ]; then - ssh -o StrictHostKeyChecking=no -i ssh_key.pem ${DEV_SSH_HOST} 'export DOCKER_IMAGE_NAME=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$CONTAINER_IMAGE && cd /curriki && docker service update --image $DOCKER_IMAGE_NAME currikistack_currikiprod-api' + ssh -o StrictHostKeyChecking=no -i ssh_key.pem ${DEV_SSH_HOST} "export DOCKER_IMAGE_NAME=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$CONTAINER_IMAGE && cd /curriki && docker service update --image $DOCKER_IMAGE_NAME currikistack_currikiprod-api" elif [ ${{ github.ref }} = 'refs/heads/master' ]; then echo "In Master" else