forked from zincsearch/zincsearch
-
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) · 775 Bytes
/
buildspec.yml
File metadata and controls
22 lines (19 loc) · 775 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 in to Amazon ECR...
- aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/m5j1b6u0
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t zinc:latest .
- docker tag zinc:latest public.ecr.aws/m5j1b6u0/zinc:latest
- docker tag zinc:latest public.ecr.aws/m5j1b6u0/zinc:v$CODEBUILD_BUILD_NUMBER
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker push public.ecr.aws/m5j1b6u0/zinc:latest
- docker push public.ecr.aws/m5j1b6u0/zinc:v$CODEBUILD_BUILD_NUMBER