From d59c36f04e89562d25582b4614b7ae51e96721de Mon Sep 17 00:00:00 2001 From: Kamal Galrani Date: Tue, 9 Jul 2024 09:34:38 +0200 Subject: [PATCH] Update deploy_to_production.sh --- .github/tvarit/deploy_to_production.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/tvarit/deploy_to_production.sh b/.github/tvarit/deploy_to_production.sh index 08c306b174..3190f52512 100755 --- a/.github/tvarit/deploy_to_production.sh +++ b/.github/tvarit/deploy_to_production.sh @@ -93,6 +93,11 @@ sed -i "s##${AWS_DEFAULT_REGION}#g" Dockerfile docker build --tag grafana/grafana:latest . echo "Upload docker image to lightsail container service and get image etag..." + +aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin 250373516626.dkr.ecr.eu-central-1.amazonaws.com +docker tag grafana/grafana:latest 250373516626.dkr.ecr.eu-central-1.amazonaws.com/pna-grafana:latest +docker push 250373516626.dkr.ecr.eu-central-1.amazonaws.com/pna-grafana:latest + IMAGE=$(aws lightsail push-container-image \ --service-name "${PREFIX}-grafana" \ --label "${PREFIX}-grafana" \