build: only adds the correct packages to the repo.

This commit is contained in:
Leonard Gram
2019-01-09 11:42:55 +01:00
parent c3e23d7574
commit 919617ef96
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -14,14 +14,15 @@ set -e
cp scripts/build/update_repo/aptly.conf /etc/aptly.conf
mkdir -p /deb-repo/db
mkdir -p /deb-repo/repo
mkdir -p /deb-repo/tmp
# Download the database
gsutil -m rsync -r gs://grafana-aptly-db/repo-db /deb-repo/db
# Add the new release to the repo
set +e
aptly publish drop squeeze filesystem:repo:grafana
set -e
aptly publish drop squeeze filesystem:repo:grafana || true
cp ./dist/*.deb /deb-repo/tmp
rm /deb-repo/tmp/grafana_latest*.deb || true
aptly repo add grafana ./dist
# Setup signing and sign the repo
+1
View File
@@ -18,6 +18,7 @@ gsutil -m rsync -r "gs://grafana-repo/$RELEASE_TYPE/rpm" /rpm-repo
# Add the new release to the repo
cp ./dist/*.rpm /rpm-repo
rm /rpm-repo/grafana-latest-1*.rpm || true
cd /rpm-repo
createrepo .