mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 20:33:36 -04:00
chore: template image in manifest
This commit is contained in:
parent
3de749044b
commit
2de11b7a41
2 changed files with 5 additions and 4 deletions
|
|
@ -1,15 +1,16 @@
|
||||||
tag=ocaml-otel-test:latest
|
tag=ocaml-otel-test:latest
|
||||||
|
platform=linux/amd64
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
sudo docker buildx build .. -f ./Dockerfile --tag $(tag)
|
sudo docker buildx build .. -f ./Dockerfile --tag $(tag) --platform $(platform)
|
||||||
|
|
||||||
docker-push:
|
docker-push:
|
||||||
sudo docker push $(tag)
|
sudo docker push $(tag)
|
||||||
|
|
||||||
kubectl-apply:
|
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:
|
||||||
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
|
all: docker-build docker-push kubectl-delete kubectl-apply
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: emit
|
- name: emit
|
||||||
image: ocaml-otel-test:latest
|
image: %IMAGE%
|
||||||
env:
|
env:
|
||||||
- name: HOST_IP
|
- name: HOST_IP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue