Files
explorer/.github/scripts/deploy.sh
ntampakas a44f2b46b7 Automated deployment on AWS Fargate (#13)
* Create Dockerfile for app

* Add deployment workflow

* Add aux scripts needed to build/deploy
2024-04-16 06:56:13 -04:00

15 lines
495 B
Bash
Executable File

#!/bin/bash
set -ex
ecs_cluster="tlsnotary-explorer"
services="tlsnotary-explorer"
for service in $services; do
tlsnotary_explorer_revision=$(aws ecs describe-task-definition --task-definition $service --query "taskDefinition.revision")
aws ecs update-service --cluster $ecs_cluster --service $service --force-new-deployment --task-definition $service:$tlsnotary_explorer_revision
done
aws ecs wait services-stable --cluster $ecs_cluster --services $services && break || continue
exit 0