diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-10-29 20:48:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-29 20:48:09 +0100 |
commit | 5918f3a5f1d11862fbaaca94ff25f1d9cc1309e2 (patch) | |
tree | 1a7130979d09ae282420103426d16bc62a0914a2 /contrib/cirrus/upload_release_archive.sh | |
parent | 6c6e78374f5be949d11a8608080c96e2d22ca872 (diff) | |
parent | 8303eb30377a41879c982b62b53cc549c60b74c0 (diff) | |
download | podman-5918f3a5f1d11862fbaaca94ff25f1d9cc1309e2.tar.gz podman-5918f3a5f1d11862fbaaca94ff25f1d9cc1309e2.tar.bz2 podman-5918f3a5f1d11862fbaaca94ff25f1d9cc1309e2.zip |
Merge pull request #4319 from cevich/limit_releases
Cirrus: Only upload tagged releases
Diffstat (limited to 'contrib/cirrus/upload_release_archive.sh')
-rwxr-xr-x | contrib/cirrus/upload_release_archive.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/cirrus/upload_release_archive.sh b/contrib/cirrus/upload_release_archive.sh index 25107f0ef..eb7742375 100755 --- a/contrib/cirrus/upload_release_archive.sh +++ b/contrib/cirrus/upload_release_archive.sh @@ -17,8 +17,15 @@ then BUCKET="libpod-pr-releases" elif [[ -n "$CIRRUS_BRANCH" ]] then - PR_OR_BRANCH="$CIRRUS_BRANCH" - BUCKET="libpod-$CIRRUS_BRANCH-releases" + # Only release non-development tagged commit ranges + if is_release + then + PR_OR_BRANCH="$CIRRUS_BRANCH" + BUCKET="libpod-$CIRRUS_BRANCH-releases" + else + warn "" "Skipping release processing: Commit range|CIRRUS_TAG is development tagged." + exit 0 + fi else die 1 "Expecting either \$CIRRUS_PR or \$CIRRUS_BRANCH to be non-empty." fi @@ -64,6 +71,10 @@ do echo "Warning: Not processing $filename (invalid extension '$EXT')" continue fi + if [[ "$EXT" =~ "gz" ]] + then + EXT="tar.gz" + fi [[ "$OS_RELEASE_ID" == "ubuntu" ]] || \ chcon -t container_file_t "$filename" |