Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhquang111 committed Aug 26, 2024
1 parent de25e12 commit 1971acd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/aws-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ 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
echo $IMAGE
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

0 comments on commit 1971acd

Please sign in to comment.