tripnomics_7.5.5/scripts/build/update_repo
venbatechnologies@gmail.com 91fce5c4bf Initial commit
2021-07-05 13:49:40 +05:30
..
aptly.conf Initial commit 2021-07-05 13:49:40 +05:30
init-deb-repo.sh Initial commit 2021-07-05 13:49:40 +05:30
load-signing-key.sh Initial commit 2021-07-05 13:49:40 +05:30
publish-deb.sh Initial commit 2021-07-05 13:49:40 +05:30
publish-rpm.sh Initial commit 2021-07-05 13:49:40 +05:30
README.md Initial commit 2021-07-05 13:49:40 +05:30
sign-rpm-repo.sh Initial commit 2021-07-05 13:49:40 +05:30
test-publish-deb-repo.sh Initial commit 2021-07-05 13:49:40 +05:30
test-publish-rpm-repo.sh Initial commit 2021-07-05 13:49:40 +05:30
test-update-deb-repo.sh Initial commit 2021-07-05 13:49:40 +05:30
test-update-rpm-repo.sh Initial commit 2021-07-05 13:49:40 +05:30
unlock-gpg-key.sh Initial commit 2021-07-05 13:49:40 +05:30
update-deb.sh Initial commit 2021-07-05 13:49:40 +05:30
update-rpm.sh Initial commit 2021-07-05 13:49:40 +05:30

Repository updates deb/rpm

Testing

It's possible to test the repo updates for rpm and deb by running the test scripts within a docker container like this. Tests are being executed by using two buckets on gcp setup for testing.

docker run -ti --rm -u 0:0 grafana/grafana-ci-deploy:1.2.3 bash # 1.2.3 is the newest image at the time of writing
# in the container:
mkdir -p /dist

#outside of container:
cd <grafana project dir>/..
docker cp grafana <container_name>:/
docker cp <gpg.key used for signing> <container_name>:/private.key

#in container:
./scripts/build/update_repo/load-signing-key.sh
cd dist && wget https://dl.grafana.com/oss/release/grafana_5.4.3_amd64.deb && wget https://dl.grafana.com/oss/release/grafana-5.4.3-1.x86_64.rpm && cd ..

#run these scripts to update local deb and rpm repos and publish them:
./scripts/build/update_repo/test-update-deb-repo.sh <gpg key password>
./scripts/build/update_repo/test-publish-deb-repo.sh
./scripts/build/update_repo/test-update-rpm-repo.sh <gpg key password>
./scripts/build/update_repo/test-publish-rpm-repo.sh