I am trying to deploy a container using GitHub actions
But it is failing in the following step
- name: Push the Docker Image to lightsail
env:
IMAGE_SHA_TAG: ${{ github.sha }}
IMAGE_URL: ${{ vars.LIGHTSAIL_IMAGE }}:${{ github.sha }}
run: >
aws lightsail push-container-image
--region ${{ vars.AWS_REGION }}
--service-name ${{ vars.SERVICE_NAME }}
--label git-push
--image $IMAGE_URL
It seems that the colon is making this command break because in the output I get
Unknown options: :da39a3ee5e6b4b0d3255bfef95601890afd80709
I replaced this step
- name: Push the Docker Image to lightsail
env:
IMAGE_SHA_TAG: ${{ github.sha }}
IMAGE_URL: ${{ format('{0}{1}{2}', vars.LIGHTSAIL_IMAGE, ':', github.sha )}}
run: >
aws lightsail push-container-image
--region ${{ vars.AWS_REGION }}
--service-name ${{ vars.SERVICE_NAME }}
--label git-push
--image $IMAGE_URL
But I keep getting the same error