bigbluebutton-Github/build/push_packages.sh

18 lines
793 B
Bash
Raw Normal View History

2021-08-13 18:53:18 +08:00
#!/bin/bash -xe
# This script uploads the packages to the CI repo server. Its counterpart
# on the server end is ci-repo-upload/cgi-bin/incoming.py. The variable
# ADDITIONAL_PACKAGE_FILES contains a comma-separated list of the package
# files that the change detection decided to reuse for this build, since
2021-08-13 18:53:18 +08:00
# the contents have not changed since that commit.
ADDITIONAL_PACKAGE_FILES="$(awk '{print $2}' < packages_to_skip.txt | tr '\n' ',' | sed 's/,*$//')"
curl \
$(for file in artifacts/*.deb; do echo -n "-F pkgs[]=@${file} " ; done) \
-F "branch=${CI_COMMIT_BRANCH}" \
-F "additional_package_files=${ADDITIONAL_PACKAGE_FILES}" \
-F "gpg_passphrase=${GPG_PASSPHRASE}" \
-u "${PACKAGES_UPLOAD_AUTHENTICATION}" \
"${PACKAGES_UPLOAD_BASE_URL}/cgi-bin/incoming.py"