-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
15 lines (12 loc) · 911 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.DEFAULT_GOAL := help
docker_build:
docker build . -f Dockerfile --target node-angular-cli -t 257477529851.dkr.ecr.us-east-1.amazonaws.com/test
docker build . -f Dockerfile --target newrelic -t 257477529851.dkr.ecr.us-east-1.amazonaws.com/test:latest-newrelic
docker_tag: docker_build
docker tag 257477529851.dkr.ecr.us-east-1.amazonaws.com/test 257477529851.dkr.ecr.us-east-1.amazonaws.com/test:${GITHUB_SHA}
docker tag 257477529851.dkr.ecr.us-east-1.amazonaws.com/test:latest-newrelic 257477529851.dkr.ecr.us-east-1.amazonaws.com/test:${GITHUB_SHA}-newrelic
docker_push: docker_tag
docker push '257477529851.dkr.ecr.us-east-1.amazonaws.com/test:latest'
docker push "257477529851.dkr.ecr.us-east-1.amazonaws.com/test:${GITHUB_SHA}"
docker push '257477529851.dkr.ecr.us-east-1.amazonaws.com/test:latest-newrelic'
docker push "257477529851.dkr.ecr.us-east-1.amazonaws.com/test:${GITHUB_SHA}-newrelic"