-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (23 loc) · 973 Bytes
/
Makefile
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
26
27
28
29
VERSION=1.0
build:
docker build --pull -t deployer:latest .
docker tag deployer:latest royge/deployer:latest
docker tag deployer:latest royge/deployer:$(VERSION)
push:
docker push royge/deployer:latest
docker push royge/deployer:$(VERSION)
prepare:
curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 && chmod +x container-structure-test-linux-amd64 && sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test
test:
container-structure-test test \
--image deployer:latest \
--config test-config.yaml
ecr-login:
$$(aws ecr get-login --region=$(AWS_REGION) --no-include-email)
ecr-repo:
aws ecr create-repository --repository-name deployer --region=$(AWS_REGION)
ecr-push:
docker tag deployer:latest $(ECR_URL)/deployer:latest
docker tag deployer:latest $(ECR_URL)/deployer:$(VERSION)
docker push $(ECR_URL)/deployer:latest
docker push $(ECR_URL)/deployer:$(VERSION)