diff --git a/generatebundlefile/hack/common.sh b/generatebundlefile/hack/common.sh index 99cb4ff5..9c3d112b 100755 --- a/generatebundlefile/hack/common.sh +++ b/generatebundlefile/hack/common.sh @@ -86,22 +86,7 @@ function push () { ;; esac - if "$ORAS_BIN" pull "${REPO}:${latest_tag}" -o ${version}; then - removeBundleMetadata ${version}/bundle.yaml - else - mkdir -p ${version} && touch ${version}/bundle.yaml.stripped - fi - - if (git diff --no-index --quiet -- ${version}/bundle.yaml.stripped bundle.yaml.stripped) then - echo "bundle contents are identical skipping bundle push for ${version}" - else - "$ORAS_BIN" push "${REPO}:${versioned_tag}" bundle.yaml - "$ORAS_BIN" push "${REPO}:${latest_tag}" bundle.yaml - fi -} + "$ORAS_BIN" push "${REPO}:${versioned_tag}" bundle.yaml + "$ORAS_BIN" push "${REPO}:${latest_tag}" bundle.yaml -function removeBundleMetadata () { - local bundle=${1?:no bundle specified} - yq 'del(.metadata.name)' ${bundle} > ${bundle}.strippedname - yq 'del(.metadata.annotations)' ${bundle}.strippedname > ${bundle}.stripped }