build: handles unexpected cases.

This commit is contained in:
Leonard Gram
2018-12-20 11:11:20 +01:00
parent 919617ef96
commit 31066aebb4
2 changed files with 5 additions and 2 deletions

View File

@@ -33,11 +33,12 @@ echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf
./scripts/build/update_repo/sign-deb-repo.sh "$GPG_PASS"
# Update the repo and db on gcp
gsutil -m rsync -r -d /deb-repo/db gs://grafana-aptly-db/repo-db
gsutil -m rsync -r -d /deb-repo/db gs://grafana-aptly-db/repo-db # TODO: support separate enterprise db
gsutil -m rsync -r -d /deb-repo/repo/grafana "gs://grafana-repo/$RELEASE_TYPE/deb"
# usage:
# deb https://grafana-repo.storage.googleapis.com/oss/deb squeeze main
#
# later:
# deb https://repo.grafana.com/oss/deb squeeze main
# curl https://packages.grafana.com/gpg.key | apt-key add -
# deb https://packages.grafana.com/oss/deb squeeze main

View File

@@ -27,6 +27,8 @@ createrepo .
echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf
rm /rpm-repo/repodata/repomd.xml.asc || true
pkill gpg-agent || true
./scripts/build/update_repo/sign-rpm-repo.sh "$GPG_PASS"
# Update the repo and db on gcp