From 1971acdc3980306ab7f35a0160e63a2ae97229f8 Mon Sep 17 00:00:00 2001 From: Dinh QUang Date: Mon, 26 Aug 2024 21:49:16 +0700 Subject: [PATCH] fix --- .github/workflows/aws-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aws-deploy.yml b/.github/workflows/aws-deploy.yml index 72c2e17..67ff26f 100644 --- a/.github/workflows/aws-deploy.yml +++ b/.github/workflows/aws-deploy.yml @@ -40,7 +40,7 @@ jobs: PRIVATE_KEY: ${{ secrets.EC2_SSH_PRIVATE_KEY }} HOST: ${{ secrets.EC2_HOST }} USER: ec2-user - IMAGE: $CONTAINER_NAME:$IMAGE_TAG + DOCKER_IMAGE: ${{ steps.build-image.outputs.image }} run: | echo "$PRIVATE_KEY" > private_key.pem chmod 600 private_key.pem @@ -48,8 +48,8 @@ jobs: ssh -i private_key.pem -o StrictHostKeyChecking=no ${USER}@${HOST} << EOF CONTAINER_NAME="${CONTAINER_NAME}" TAG="${IMAGE_TAG}" - IMAGE="\${CONTAINER_NAME}:\${TAG}" + IMAGE="${DOCKER_IMAGE}" sudo docker images - echo $IMAGE + echo $DOCKER_IMAGE EOF