We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490c4bd commit 299bc3cCopy full SHA for 299bc3c
deploy.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
-image_hash=$1
3
-account_id=$(aws sts get-caller-identity --query Account --output text)
+export image_hash=$1
+export account_id=$(aws sts get-caller-identity --query Account --output text)
4
aws ecr get-login-password | docker login --username AWS --password-stdin ${account_id}.dkr.ecr.us-west-1.amazonaws.com \
5
- && docker stop go-capture \
6
- && docker rm go-capture \
7
- && docker run -d --env-file .env -p 8000:8000 --name go-capture ${account_id}.dkr.ecr.us-west-1.amazonaws.com/go-capture:${image_hash} \
+ && docker compose stop \
+ && docker compose build \
+ && docker compose run api
0 commit comments