Oleg Gaidarenko 89a4f30eab Build: allow bash to expand the wildcard (#18354) 6 years ago
..
README.md aafa66f644 build: usage instruction for repo test. 7 years ago
aptly.conf 7fea1f84c0 build: release of debs to our debian repo. 7 years ago
init-deb-repo.sh dc155dfa2f docs: howto for recreating our debian repositories. 6 years ago
sign-rpm-repo.sh c3e23d7574 build: rpm repo deploy. 7 years ago
test-update-deb-repo.sh aafa66f644 build: usage instruction for repo test. 7 years ago
test-update-rpm-repo.sh aafa66f644 build: usage instruction for repo test. 7 years ago
unlock-gpg-key.sh b9c4eb70b1 build: publishes beta releases to separate repos. 7 years ago
update-deb.sh 89a4f30eab Build: allow bash to expand the wildcard (#18354) 6 years ago
update-rpm.sh 89a4f30eab Build: allow bash to expand the wildcard (#18354) 6 years ago

README.md

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.0 bash # 1.2.0 is the newest image at the time of writing
# in the container:
mkdir -p /go/src/github.com/grafana/dist
cd /go/src/github.com/grafana

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

#in container:
gpg --batch --allow-secret-key-import --import /private.key
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:
./script/build/update_repo/test-update-deb-repo.sh <gpg key password>
./script/build/update_repo/test-update-rpm-repo.sh <gpg key password>