-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.sh
More file actions
25 lines (14 loc) · 905 Bytes
/
commands.sh
File metadata and controls
25 lines (14 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## command to create a repository in AWS ECR With name calendly
aws ecr create-repository --repository-name calendly
## command to buld the Docker Container Image (dont forget the dot at the end)
docker build --platform linux/amd64 --provenance=false -t calendly .
## Command to give the tag Lastest to the Docker Image
docker tag calendly:latest 778277577883.dkr.ecr.us-east-1.amazonaws.com/calendly:latest
##you can get above URI from AWS ECR console
## Command to connect to AWS ECR
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 778277577883.dkr.ecr.us-east-1.amazonaws.com
## replace this 980921724429.dkr.ecr.us-east-1.amazonaws.com with your URI from AWS ECR console
## Command to Push the latest Image to AWS ECR
docker push 778277577883.dkr.ecr.us-east-1.amazonaws.com/calendly:latest
## Testing continuous deployment ##
## Test Number 1