-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (19 loc) · 923 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
KUBE_VERSION=v1.14.0
RUBY_MAJOR=2.7
RUBY_VERSION=$(RUBY_MAJOR).0
RUBY_CHROME_VERSION=$(RUBY_VERSION)-v1
NODE_VERSION=3.141
BUILD_OPT=--no-cache
kubernetes: kubernetes-build kubernetes-push
kubernetes-build:
docker build $(BUILD_OPT) --build-arg RELEASE=$(KUBE_VERSION) -t miry/kubernetes:$(KUBE_VERSION) kubernetes
kubernetes-push:
docker push miry/kubernetes:$(KUBE_VERSION)
ruby-chrome: ruby-chrome-build ruby-chrome-push
ruby-chrome-build:
docker build $(BUILD_OPT) --build-arg RUBY_VERSION=$(RUBY_VERSION) --build-arg RUBY_MAJOR=$(RUBY_MAJOR) --build-arg NODE_VERSION=$(NODE_VERSION) -t jetthoughts/ruby-chrome:latest -t jetthoughts/ruby-chrome:$(RUBY_CHROME_VERSION) ruby-chrome
ruby-chrome-push: ruby-chrome-analyze
docker push jetthoughts/ruby-chrome:$(RUBY_CHROME_VERSION)
docker push jetthoughts/ruby-chrome:latest
ruby-chrome-analyze:
CI=true dive jetthoughts/ruby-chrome:$(RUBY_CHROME_VERSION)