-
Notifications
You must be signed in to change notification settings - Fork 462
hack: change override env for version in build-go.sh #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hack: change override env for version in build-go.sh #191
Conversation
One of the CI runs shows `1.10.3` as the version chosen for build of machine config operator ```console Pulling image "docker-registry.default.svc:5000/ci-op-39bh1qy5/pipeline@sha256:daa33010e3225f7abefc2358aaff9891353e86b3d7dde7257982fb487a298e6b" ... Replaced Dockerfile FROM image registry.svc.ci.openshift.org/openshift/origin-v4.0:base Pulling image docker-registry.default.svc:5000/ci-op-39bh1qy5/pipeline@sha256:02b13d581ad7d92b43d0557a26e804c06f7f35261cbed17ac91b21a468483ff9 ... Pulling image registry.svc.ci.openshift.org/openshift/release:golang-1.10 ... --> FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 as builder --> WORKDIR /go/src/github.com/openshift/machine-config-operator --> COPY . . --> RUN WHAT=machine-config-operator ./hack/build-go.sh Building github.com/openshift/machine-config-operator/cmd/machine-config-operator (1.10.3) --> FROM docker-registry.default.svc:5000/ci-op-39bh1qy5/pipeline@sha256:02b13d581ad7d92b43d0557a26e804c06f7f35261cbed17ac91b21a468483ff9 as 1 --> COPY --from=builder /go/src/github.com/openshift/machine-config-operator/_output/linux/amd64/machine-config-operator /usr/bin/ --> COPY install /manifests --> ENTRYPOINT ["/usr/bin/machine-config-operator"] --> LABEL io.openshift.release.operator=true --> ENV "OPENSHIFT_BUILD_NAME"="machine-config-operator" "OPENSHIFT_BUILD_NAMESPACE"="ci-op-39bh1qy5" --> LABEL "io.openshift.build.name"="machine-config-operator" "io.openshift.build.namespace"="ci-op-39bh1qy5" "vcs-ref"="" "vcs-url"="" "io.openshift.build.commit.id"="" "io.openshift.build.commit.message"="" "io.openshift.build.commit.author"="" "io.openshift.build.source-location"="" "io.openshift.build.source-context-dir"="" "vcs-type"="" "io.openshift.build.name"="" "io.openshift.build.namespace"="" "io.openshift.build.commit.ref"="" "io.openshift.build.commit.date"="" --> Committing changes to temp.builder.openshift.io/ci-op-39bh1qy5/machine-config-operator:b2d8da48 ... --> Done Pushing image docker-registry.default.svc:5000/ci-op-39bh1qy5/pipeline:machine-config-operator ... Pushed 2/3 layers, 71% complete Pushed 3/3 layers, 100% complete Push successful ``` Turns out `registry.svc.ci.openshift.org/openshift/release:golang-1.10` has `VERSION` env set to golang's version. So switching to `VERSION_OVERRIDE` prevents conflicts.
281e8a3 to
a167af1
Compare
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, jlebon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Similar to openshift/machine-config-operator#191. Turns out `registry.svc.ci.openshift.org/openshift/release:golang-1.10` has `VERSION` env set to golang's version. So switching to `VERSION_OVERRIDE` prevents conflicts.
One of the CI runs shows
1.10.3as the version chosen for build of machine config operatorBuilding github.com/openshift/machine-config-operator/cmd/machine-config-operator (1.10.3)Turns out
registry.svc.ci.openshift.org/openshift/release:golang-1.10hasVERSIONenv set to golang's version. So switching toVERSION_OVERRIDEprevents conflicts./cc @jlebon @ashcrow