27 lines
507 B
Makefile
27 lines
507 B
Makefile
REGISTRY ?= registry.haumdaucher.de
|
|
IMAGE_NAME ?= moritzgrafde
|
|
TAG ?= latest
|
|
PLATFORM ?= linux/amd64
|
|
|
|
IMAGE ?= $(REGISTRY)/$(IMAGE_NAME):$(TAG)
|
|
|
|
.PHONY: compile build tag push deploy all
|
|
|
|
all: compile build tag push deploy
|
|
|
|
compile:
|
|
hugo
|
|
|
|
build:
|
|
docker build --platform $(PLATFORM) -t $(IMAGE_NAME):$(TAG) .
|
|
|
|
tag:
|
|
docker tag $(IMAGE_NAME):$(TAG) $(IMAGE)
|
|
|
|
push:
|
|
docker push $(IMAGE)
|
|
|
|
deploy:
|
|
kubectl rollout restart deployment/moritzgrafde -n web
|
|
kubectl rollout status deployment/moritzgrafde -n web
|