grafana/scripts/build/update_repo
2021-03-03 17:28:47 +02:00
..
aptly.conf build: release of debs to our debian repo. 2019-01-09 11:42:55 +01:00
init-deb-repo.sh docs: howto for recreating our debian repositories. 2019-02-19 16:52:47 +01:00
load-signing-key.sh Remove pkill gpg-agent (#31169) 2021-03-03 17:28:47 +02:00
publish-deb.sh Build: Split up task in the CI pipeline to ease running outside circleci (#18861) 2019-09-23 12:00:18 +02:00
publish-rpm.sh Build: Split up task in the CI pipeline to ease running outside circleci (#18861) 2019-09-23 12:00:18 +02:00
README.md DevEnv: updates nodejs from 10.x to 12.x and golang to 1.13 in ci-deploy dockerfile. (#20405) 2019-11-21 15:16:32 +01:00
sign-rpm-repo.sh build: rpm repo deploy. 2019-01-09 11:42:55 +01:00
test-publish-deb-repo.sh Build: Split up task in the CI pipeline to ease running outside circleci (#18861) 2019-09-23 12:00:18 +02:00
test-publish-rpm-repo.sh Build: Split up task in the CI pipeline to ease running outside circleci (#18861) 2019-09-23 12:00:18 +02:00
test-update-deb-repo.sh Build: Split up task in the CI pipeline to ease running outside circleci (#18861) 2019-09-23 12:00:18 +02:00
test-update-rpm-repo.sh build: usage instruction for repo test. 2019-01-17 16:55:12 +01:00
unlock-gpg-key.sh build: publishes beta releases to separate repos. 2019-01-09 11:42:55 +01:00
update-deb.sh Remove pkill gpg-agent (#31169) 2021-03-03 17:28:47 +02:00
update-rpm.sh Remove pkill gpg-agent (#31169) 2021-03-03 17:28:47 +02:00

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