Skip to content

Commit

Permalink
fix OS ci build
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Jul 24, 2024
1 parent 1111944 commit 50cba26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .ci/openshift-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2023 Red Hat, Inc.
# Copyright (c) 2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand All @@ -11,12 +11,17 @@
# Red Hat, Inc. - initial API and implementation

# Dockerfile to bootstrap build and test in openshift-ci
FROM registry.ci.openshift.org/openshift/release:golang-1.18
FROM registry.ci.openshift.org/openshift/release:golang-1.20
# hadolint ignore=DL3002
USER 0

SHELL ["/bin/bash", "-c"]

# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

# Install yq, kubectl, chectl cli used by olm/olm.sh script.
# hadolint ignore=DL3041
# Install yq, kubectl, chectl cli.
Expand Down

0 comments on commit 50cba26

Please sign in to comment.