2016-06-16 19:34:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2016-07-02 10:24:32 +00:00
|
|
|
# shellcheck source=./utils/build-utils.sh
|
|
|
|
# shellcheck disable=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\": \"rpm\", \
|
|
|
|
\"subject\": \"sobolevn\" \
|
|
|
|
}, \
|
|
|
|
\"version\": {
|
|
|
|
\"name\": \"${SCRIPT_VERSION}\", \
|
|
|
|
\"desc\": \"Version ${SCRIPT_VERSION}\", \
|
|
|
|
\"released\": \"${RELEASE_DATE}\", \
|
|
|
|
\"vcs_tag\": \"v${SCRIPT_VERSION}\", \
|
|
|
|
\"gpgSign\": true \
|
|
|
|
}, \
|
|
|
|
\"files\": [{ \
|
|
|
|
\"includePattern\": \"build/buildroot/(.*\.rpm)\", \
|
|
|
|
\"uploadPattern\": \"/git-secret-${SCRIPT_VERSION}-1.noarch.rpm\"
|
|
|
|
}], \
|
|
|
|
\"publish\": true \
|
|
|
|
}" > "${SECRET_PROJECT_ROOT}/build/rpm_descriptor.json"
|