oc-monitord

This commit is contained in:
mr 2025-03-24 09:23:03 +01:00
parent 907880bfd6
commit b4d57a8f2f
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
FROM golang:alpine AS deps
ARG MONITORD_IMAGE
WORKDIR /app
COPY go.mod go.sum ./
RUN sed -i '/replace/d' go.mod
@ -19,7 +21,7 @@ COPY . .
RUN go build
#----------------------------------------------------------------------------------------------
FROM oc-monitord:latest AS monitord
FROM ${MONITORD_IMAGE:-oc-monitord}:latest AS monitord
FROM scratch

View File

@ -16,7 +16,7 @@ clean:
rm -rf oc-schedulerd
docker:
DOCKER_BUILDKIT=1 docker build -t oc/oc-schedulerd:0.0.1 -f Dockerfile .
DOCKER_BUILDKIT=1 docker build -t oc/oc-schedulerd:0.0.1 -f Dockerfile . --build-arg MONITORD_IMAGE=oc/oc-monitord
docker tag oc/oc-schedulerd:0.0.1 oc/oc-schedulerd:latest
publish-kind: