We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ef45c4 + abfbf4d commit ccb152aCopy full SHA for ccb152a
Dockerfile.rhel7
@@ -1,8 +1,9 @@
1
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
2
+ARG TAGS=ocp
3
WORKDIR /go/src/github.com/openshift/console-operator
4
COPY . .
5
ENV GO_PACKAGE github.com/openshift/console-operator
-RUN go build -ldflags "-X $GO_PACKAGE/pkg/version.versionFromGit=$(git describe --long --tags --abbrev=7 --match 'v[0-9]*')" -tags="ocp" -o console ./cmd/console
6
+RUN go build -ldflags "-X $GO_PACKAGE/pkg/version.versionFromGit=$(git describe --long --tags --abbrev=7 --match 'v[0-9]*')" -tags="${TAGS}" -o console ./cmd/console
7
8
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
9
RUN useradd console-operator
0 commit comments