diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-09 18:11:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 18:11:28 +0000 |
commit | b24f2ae9019a5d0d381944e502fdeecffaeb445c (patch) | |
tree | cc269d8198a42452066162938416db1ea5c3bfc0 | |
parent | c7ed2be8d2745eca7a9bcabf7f40e869baa8c5ec (diff) | |
parent | a63035be203254b979e56bb77e7cf48646e9962b (diff) | |
download | podman-b24f2ae9019a5d0d381944e502fdeecffaeb445c.tar.gz podman-b24f2ae9019a5d0d381944e502fdeecffaeb445c.tar.bz2 podman-b24f2ae9019a5d0d381944e502fdeecffaeb445c.zip |
Merge pull request #12547 from cevich/cached_swagger
[CI:DOCS] Cirrus: Use cached swagger binary
-rw-r--r-- | .cirrus.yml | 2 | ||||
-rwxr-xr-x | contrib/cirrus/runner.sh | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index f4ad8f895..5bb8b17fc 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -29,7 +29,7 @@ env: UBUNTU_NAME: "ubuntu-2110" # Google-cloud VM Images - IMAGE_SUFFIX: "c6226133906620416" + IMAGE_SUFFIX: "c6015869890330624" FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}" PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}" UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}" diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh index 2c961da06..c52fd9216 100755 --- a/contrib/cirrus/runner.sh +++ b/contrib/cirrus/runner.sh @@ -141,11 +141,8 @@ function _run_swagger() { local envvarsfile req_env_vars GCPJSON GCPNAME GCPPROJECT CTR_FQIN - # Building this is a PITA, just grab binary for use in automation - # Ref: https://goswagger.io/install.html#static-binary - download_url=$(\ - curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \ - jq -r '.assets[] | select(.name | contains("linux_amd64")) | .browser_download_url') + [[ -x /usr/local/bin/swagger ]] || \ + die "Expecting swagger binary to be present and executable." # The filename and bucket depend on the automation context #shellcheck disable=SC2154,SC2153 @@ -166,9 +163,6 @@ function _run_swagger() { die "Unknown execution context, expected a non-empty value for \$CIRRUS_TAG, \$CIRRUS_BRANCH, or \$CIRRUS_PR" fi - curl -s -o /usr/local/bin/swagger -L'#' "$download_url" - chmod +x /usr/local/bin/swagger - # Swagger validation takes a significant amount of time msg "Pulling \$CTR_FQIN '$CTR_FQIN' (background process)" podman pull --quiet $CTR_FQIN & |