-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
22 lines (19 loc) · 732 Bytes
/
buildspec.yml
File metadata and controls
22 lines (19 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: 0.2
phases:
pre_build:
commands:
- echo Logging into Amazon ECR...
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 778277577883.dkr.ecr.us-east-1.amazonaws.com
- IMAGE_TAG=latest
build:
commands:
- echo Building the Docker image...
- docker build --platform linux/amd64 --provenance=false -t calendly .
- docker tag calendly:latest 778277577883.dkr.ecr.us-east-1.amazonaws.com/calendly:$IMAGE_TAG
post_build:
commands:
- echo Pushing the Docker image to ECR...
- docker push 778277577883.dkr.ecr.us-east-1.amazonaws.com/calendly:$IMAGE_TAG
- echo Build completed successfully.
artifacts:
files: []