mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ metadata:
|
|||
spec:
|
||||
containers:
|
||||
- name: emit
|
||||
image: ocaml-otel-test:latest
|
||||
image: %IMAGE%
|
||||
env:
|
||||
- name: HOST_IP
|
||||
valueFrom:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue