Skip to content
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

Remove doozer env vars from ci-openshift golang images #5758

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ci_images/rhel-8/ci-openshift-build-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ RUN mkdir -p $GOPATH && \
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
5 changes: 5 additions & 0 deletions ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ ADD .oit/unsigned.repo $DNF_WRAPPER_DIR/
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
5 changes: 5 additions & 0 deletions ci_images/rhel-9/ci-openshift-build-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ RUN mkdir -p $GOPATH && \
# Some image building tools don't create a missing WORKDIR
RUN mkdir -p /go/src/github.com/openshift/origin
WORKDIR /go/src/github.com/openshift/origin

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
4 changes: 4 additions & 0 deletions ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ ENV PATH=$DNF_WRAPPER_DIR:$PATH
# it is not running on a build farm.
ADD .oit/unsigned.repo $DNF_WRAPPER_DIR/

# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc
16 changes: 8 additions & 8 deletions images/ci-openshift-build-root-latest.rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-build-root/Dockerfile
git:
Expand All @@ -14,6 +16,10 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/openshift/release:rhel-8-release-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"
from:
member: ci-openshift-golang-builder-latest.rhel8
labels:
Expand Down Expand Up @@ -41,12 +47,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-build-root-latest.rhel9.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-build-root/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/openshift/release:rhel-9-release-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
member: ci-openshift-golang-builder-latest.rhel9
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-build-root-previous.rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-build-root/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/openshift/release:rhel-8-release-golang-{GO_PREVIOUS}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

from:
member: ci-openshift-golang-builder-previous.rhel8
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-build-root-previous.rhel9.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-build-root/Dockerfile
git:
Expand All @@ -14,6 +16,11 @@ content:
mirror: true
mirror_manifest_list: true
upstream_image: registry.ci.openshift.org/openshift/release:rhel-9-release-golang-{GO_PREVIOUS}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
member: ci-openshift-golang-builder-previous.rhel9
labels:
Expand Down Expand Up @@ -41,12 +48,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
16 changes: 8 additions & 8 deletions images/ci-openshift-golang-builder-latest.rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -16,6 +18,10 @@ content:
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
upstream_image_mirror:
- registry.ci.openshift.org/ocp-private/builder-priv:rhel-8-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

from:
stream: rhel-8-golang-{GO_LATEST}
Expand Down Expand Up @@ -45,12 +51,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
16 changes: 8 additions & 8 deletions images/ci-openshift-golang-builder-latest.rhel9.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -16,6 +18,10 @@ content:
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
upstream_image_mirror:
- registry.ci.openshift.org/ocp-private/builder-priv:rhel-9-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
stream: rhel-9-golang-{GO_LATEST}
Expand Down Expand Up @@ -44,12 +50,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
17 changes: 9 additions & 8 deletions images/ci-openshift-golang-builder-previous.rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -16,6 +18,11 @@ content:
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_PREVIOUS}-openshift-{MAJOR}.{MINOR}
upstream_image_mirror:
- registry.ci.openshift.org/ocp-private/builder-priv:rhel-8-golang-{GO_PREVIOUS}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"


from:
stream: rhel-8-golang-{GO_PREVIOUS}
Expand Down Expand Up @@ -45,12 +52,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel8.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down
16 changes: 8 additions & 8 deletions images/ci-openshift-golang-builder-previous.rhel9.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
content:
# set_build_variables is necessary in order to set CI_RPM_SVC (see .envs below) in the Dockerfile.
set_build_variables: true
# set_build_variables to false, as setting git commit env vars break certain
# workloads. Set env vars in the Dockerfile, and use modifications if they
# should be variable
set_build_variables: false
source:
dockerfile: ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
git:
Expand All @@ -16,6 +18,10 @@ content:
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_PREVIOUS}-openshift-{MAJOR}.{MINOR}
upstream_image_mirror:
- registry.ci.openshift.org/ocp-private/builder-priv:rhel-9-golang-{GO_PREVIOUS}-openshift-{MAJOR}.{MINOR}
modifications:
- action: replace
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

from:
stream: rhel-9-golang-{GO_PREVIOUS}
Expand Down Expand Up @@ -44,12 +50,6 @@ owners:
maintainer:
component: Release

envs:
# These services run on the build farms and serve RPMs to CI workloads.
# This environment variable is used by dnf_wrapper.sh to know which service
# to acquire repo information from.
CI_RPM_SVC: "base-{MAJOR}-{MINOR}-rhel9.ocp.svc"

# The from: stanza is exactly what we want to use. So ignore anything in
# the Dockerfile.
canonical_builders_from_upstream: false
Expand Down