Skip to content

Commit

Permalink
Merge pull request #343 from mjlshen/OSD-21843
Browse files Browse the repository at this point in the history
Update push steps to use containerized skopeo
  • Loading branch information
openshift-merge-bot[bot] committed Apr 1, 2024
2 parents 94bae11 + 70f4f3e commit 879ef19
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONTAINER_ENGINE=$(command -v podman || command -v docker)
CONTAINER_ENGINE_SHORT=${CONTAINER_ENGINE##*/}
REPO_ROOT=$(git rev-parse --show-toplevel)
VERSIONS_DIR=${REPO_ROOT}/versions
SKOPEO_IMAGE="quay.io/skopeo/stable:v1.8.0"
SKOPEO_IMAGE="quay.io/skopeo/stable:v1.14.2"

source $REPO_ROOT/boilerplate/_lib/common.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ popd

if [ "$push_catalog" = true ] ; then
# push image
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
${CONTAINER_ENGINE} run ${SKOPEO_IMAGE} -- skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
"${SRC_CONTAINER_TRANSPORT}:${registry_image}:${operator_channel}-latest" \
"docker://${registry_image}:${operator_channel}-latest"

Expand All @@ -104,7 +104,7 @@ if [ "$push_catalog" = true ] ; then
exit 1
fi

skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
${CONTAINER_ENGINE} run ${SKOPEO_IMAGE} -- skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
"${SRC_CONTAINER_TRANSPORT}:${registry_image}:${operator_channel}-latest" \
"docker://${registry_image}:${operator_channel}-${operator_commit_hash}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

REPO_ROOT=$(git rev-parse --show-toplevel)
source $REPO_ROOT/boilerplate/_lib/common.sh
SKOPEO_IMAGE="quay.io/skopeo/stable:v1.14.2"

function check_mandatory_params() {
local csv_missing_param_error
Expand Down
6 changes: 4 additions & 2 deletions config/build_image-v5.0.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ go install k8s.io/code-generator/cmd/openapi-gen@${OPENAPI_GEN_VERSION}
#########
# ENVTEST
#########
# We do not enforce versioning on setup-envtest
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
# Latest is only compatible with Go 1.22
# https://github.com/kubernetes-sigs/controller-runtime/issues/2744
ENVTEST_VERSION="bf15e44028f908c790721fc8fe67c7bf2d06a611"
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@${ENVTEST_VERSION}

##############
# govulncheck
Expand Down

0 comments on commit 879ef19

Please sign in to comment.