use the gpg signing token to sign packages, switch back to rhel6 per discord

This commit is contained in:
Cody Lee 2023-01-05 20:08:18 -06:00
parent 375cb9e5bf
commit d150bba25b
No known key found for this signature in database
3 changed files with 17 additions and 3 deletions

View File

@ -450,9 +450,16 @@ nfpms:
mode: 0644
owner: unpoller
group: unpoller
# signing
rpm:
signature:
key_file: "{{ .Env.PACKAGECLOUD_SIGNING_GPG }}"
deb:
signature:
key_file: "{{ .Env.PACKAGECLOUD_SIGNING_GPG }}"
type: origin
scripts:
preinstall: "scripts/pre-install.sh"
postinstall: "scripts/post-install.sh"

View File

@ -57,10 +57,17 @@ rsrc.syso: init/windows/application.ico init/windows/manifest.xml $(shell go env
$(shell go env GOPATH)/bin/rsrc:
cd /tmp ; go get $(RSRC_BIN) ; go install $(RSRC_BIN)@latest
build-and-release: export DOCKER_REGISTRY = ghcr.io
build-and-release: export DOCKER_IMAGE_NAME = unpoller/unpoller
build-and-release: export PACKAGECLOUD_SIGNING_GPG =
bulid-and-release: clean
goreleaser release --rm-dist
build: export DOCKER_REGISTRY = ghcr.io
build: export DOCKER_IMAGE_NAME = unpoller/unpoller
build: export PACKAGECLOUD_SIGNING_GPG =
build: clean
goreleaser release --rm-dist --skip-validate --skip-publish --skip-sign --debug

View File

@ -46,7 +46,7 @@ if [[ ${PACKAGE_VERSION} =~ .+-rc ]]; then
fi
export SUPPORTED_UBUNTU_VERSIONS="focal"
export SUPPORTED_REDHAT_VERSIONS="7"
export SUPPORTED_REDHAT_VERSIONS="6"
if [[ $ARTIFACT_PATH == *termux* ]]; then
# skip termux builds