You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-secret/utils/deb/deb-deploy.sh

37 lines
1.0 KiB
Bash

#!/usr/bin/env bash
set -e
# shellcheck disable=SC1090,SC1091
source "${SECRET_PROJECT_ROOT}/utils/build-utils.sh"
# Variables, which will be used in `bintray.json`:
SCRIPT_VERSION=$(bash "${PWD}/git-secret" --version)
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\": [{ \
\"includePattern\": \"build/buildroot/(.*\.deb)\", \
\"uploadPattern\": \"/git-secret_${SCRIPT_VERSION}_all.deb\", \
\"matrixParams\": { \
\"deb_distribution\": \"stable\", \
\"deb_component\": \"main\", \
\"deb_architecture\": \"all\" \
} \
}], \
\"publish\": true \
}" > "${SECRET_PROJECT_ROOT}/build/deb_descriptor.json"