Skip to content

Commit

Permalink
Update deploy_to_production.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
KamalGalrani authored Jul 9, 2024
1 parent fa5f465 commit d59c36f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/tvarit/deploy_to_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ sed -i "s#<AWS_REGION/>#${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" \
Expand Down

0 comments on commit d59c36f

Please sign in to comment.