Skip to content

Commit

Permalink
Fix docker build args and restore semver info on operator node (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschork authored Nov 1, 2024
1 parent f3cec0c commit b649871
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1

# Declare build arguments
# TODO: this is only used for node image right now, should we also use it for nodeplugin?
# NOTE: to use these args, they must be *consumed* in the child scope (see node-builder)
# https://docs.docker.com/build/building/variables/#scoping
ARG SEMVER=""
ARG GITCOMMIT=""
ARG GITDATE=""
Expand Down Expand Up @@ -70,6 +71,9 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Node build stage
FROM common-builder AS node-builder
ARG SEMVER
ARG GITCOMMIT
ARG GITDATE
COPY node /app/node
COPY operators ./operators
WORKDIR /app/node
Expand Down

0 comments on commit b649871

Please sign in to comment.