chore: template image in manifest

This commit is contained in:
Matt Bray 2022-03-23 10:22:35 +00:00
parent 3de749044b
commit 2de11b7a41
2 changed files with 5 additions and 4 deletions

View file

@ -1,15 +1,16 @@
tag=ocaml-otel-test:latest
platform=linux/amd64
docker-build:
sudo docker buildx build .. -f ./Dockerfile --tag $(tag)
sudo docker buildx build .. -f ./Dockerfile --tag $(tag) --platform $(platform)
docker-push:
sudo docker push $(tag)
kubectl-apply:
kubectl apply -f emit-test-pod.yaml
sed s=%IMAGE%=$(tag)=g emit-test-pod.yaml | kubectl apply -f -
kubectl-delete:
kubectl delete -f emit-test-pod.yaml
sed s=%IMAGE%=$(tag)=g emit-test-pod.yaml | kubectl delete -f - --ignore-not-found --grace-period 1
all: docker-build docker-push kubectl-delete kubectl-apply

View file

@ -5,7 +5,7 @@ metadata:
spec:
containers:
- name: emit
image: ocaml-otel-test:latest
image: %IMAGE%
env:
- name: HOST_IP
valueFrom: