-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.buildspec.yml
24 lines (23 loc) · 1 KB
/
backup.buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: 0.2
phases:
install:
runtime-versions:
docker: 18
commands:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
pre_build:
commands:
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t 140136132170.dkr.ecr.ap-southeast-1.amazonaws.com/frontend/angular-node:latest .
- docker tag 140136132170.dkr.ecr.ap-southeast-1.amazonaws.com/frontend/angular-node:latest 140136132170.dkr.ecr.ap-southeast-1.amazonaws.com/frontend/angular-node
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker push 140136132170.dkr.ecr.ap-southeast-1.amazonaws.com/frontend/angular-node