Browse Source

build-and-provide-package: support RELEASE_REPOSITORIES

To allow pushing packages to multiple release repositories
we can now use something like:

  RELEASE_REPOSITORIES="/srv/repository/release/ce/${release} /srv/repository/release/pro/${release}"

iff $release is set.

Development sponsored by Sipwise GmbH, recorded as
MT#17701 in customers' ticket system.
tags/0.18.4
Michael Prokop 5 years ago
parent
commit
8c422f079d
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      scripts/build-and-provide-package

+ 10
- 1
scripts/build-and-provide-package View File

@@ -1076,7 +1076,16 @@ deploy_to_releases() {
# setting the predefined parameters therefore) then ${release} is set to
# '${release}' instead of being empty
[ "${release}" != '${release}' ] ; then
release_repos

if [ -z "${RELEASE_REPOSITORIES:-}" ] ; then
release_repos
else
# allow pushing packages to multiple release repositories, like:
# RELEASE_REPOSITORIES="/srv/repository/release/ce/${release} /srv/repository/release/pro/${release}"
for release_repository in ${RELEASE_REPOSITORIES:-} ; do
RELEASE_REPOSITORY="$release_repository" release_repos
done
fi
else
reprepro_wrapper
trunk_release


Loading…
Cancel
Save