add: dockerfile and deploy command
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
MAJOR_VERSION = 0
|
||||
MINOR_VERSION = 0
|
||||
PATH_VERSION = 1
|
||||
|
||||
TAG = $(MAJOR_VERSION).$(MINOR_VERSION).$(PATH_VERSION)
|
||||
|
||||
build:
|
||||
docker build . -t skubelb-handler:$(TAG)
|
||||
docker tag skubelb-handler:$(TAG) us-west4-docker.pkg.dev/nixernetes/images/skubelb-handler:$(TAG)
|
||||
|
||||
kube:
|
||||
cat kubernetes.yaml.tmpl | sed 's/TAG/$(TAG)/' > kubernetes.yaml
|
||||
|
||||
deploy: build kube
|
||||
docker push us-west4-docker.pkg.dev/nixernetes/images/skubelb-handler:$(TAG)
|
||||
kubectl apply -f kubernetes.yaml
|
||||
Reference in New Issue
Block a user