File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
image_hash=$1
3
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 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}
8
- curl 127.0.0.1:8000/health_check/
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} \
8
+ && curl 127.0.0.1:8000/health_check/
You can’t perform that action at this time.
0 commit comments