2016-06-16 19:34:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2016-07-02 10:30:49 +00:00
|
|
|
# shellcheck disable=SC1090,SC1091
|
2016-06-16 19:34:25 +00:00
|
|
|
source "${SECRET_PROJECT_ROOT}/utils/build-utils.sh"
|
|
|
|
|
|
|
|
# Variables, which will be used in `bintray.json`:
|
2016-07-02 10:24:32 +00:00
|
|
|
SCRIPT_VERSION=$(bash "${PWD}/git-secret" --version)
|
2016-06-16 19:34:25 +00:00
|
|
|
RELEASE_DATE=$(date +%Y-%m-%d)
|
|
|
|
|
|
|
|
# add `\"override\": 1 \` into the `matrixParams`, if needed:
|
|
|
|
echo "{ \
|
|
|
|
\"package\": { \
|
|
|
|
\"name\": \"git-secret\", \
|
|
|
|
\"repo\": \"deb\", \
|
|
|
|
\"subject\": \"sobolevn\" \
|
|
|
|
}, \
|
|
|
|
\"version\": {
|
|
|
|
\"name\": \"${SCRIPT_VERSION}\", \
|
|
|
|
\"desc\": \"Version ${SCRIPT_VERSION}\", \
|
|
|
|
\"released\": \"${RELEASE_DATE}\", \
|
|
|
|
\"vcs_tag\": \"v${SCRIPT_VERSION}\", \
|
|
|
|
\"gpgSign\": true \
|
|
|
|
}, \
|
|
|
|
\"files\": [{ \
|
2017-09-27 21:01:32 +00:00
|
|
|
\"includePattern\": \"build/buildroot/(.*\\\\\\.deb)\", \
|
2016-06-16 19:34:25 +00:00
|
|
|
\"uploadPattern\": \"/git-secret_${SCRIPT_VERSION}_all.deb\", \
|
|
|
|
\"matrixParams\": { \
|
2016-08-20 11:29:36 +00:00
|
|
|
\"deb_distribution\": \"git-secret\", \
|
2016-06-16 19:34:25 +00:00
|
|
|
\"deb_component\": \"main\", \
|
|
|
|
\"deb_architecture\": \"all\" \
|
|
|
|
} \
|
|
|
|
}], \
|
|
|
|
\"publish\": true \
|
|
|
|
}" > "${SECRET_PROJECT_ROOT}/build/deb_descriptor.json"
|