Skip to content

Commit 68b30d1

Browse files
committed
Deploy script
1 parent f827097 commit 68b30d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deploy.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
image_hash=$1
3+
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 run -d --env-file .env -p 8000:8000 --name go-capture ${account_id}.dkr.ecr.us-west-1.amazonaws.com/go-capture:${image_hash}

0 commit comments

Comments
 (0)