build: deploys enterprise to its own repo.

This commit is contained in:
Leonard Gram 2019-01-09 11:17:21 +01:00
parent 76e9607b25
commit ad61bff377
2 changed files with 15 additions and 3 deletions

View File

@ -323,7 +323,7 @@ jobs:
deploy-enterprise-master: deploy-enterprise-master:
docker: docker:
- image: grafana/grafana-ci-deploy:1.0.0 - image: grafana/grafana-ci-deploy:1.1.0
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
@ -346,7 +346,7 @@ jobs:
deploy-enterprise-release: deploy-enterprise-release:
docker: docker:
- image: grafana/grafana-ci-deploy:1.0.0 - image: grafana/grafana-ci-deploy:1.1.0
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
@ -365,10 +365,20 @@ jobs:
- run: - run:
name: Deploy to Grafana.com name: Deploy to Grafana.com
command: './scripts/build/publish.sh --enterprise' command: './scripts/build/publish.sh --enterprise'
- run:
name: Load GPG private key
comand: './scripts/build/load-signing-key.sh'
- run:
name: Update Debian repository
command: './scripts/build/update_repo/update-deb.sh "enterprise" "$GPG_KEY_PASSWORD" "$CIRCLE_TAG"'
- run:
name: Update RPM repository
command: './scripts/build/update_repo/update-rpm.sh "enterprise" "$GPG_KEY_PASSWORD" "$CIRCLE_TAG"'
deploy-master: deploy-master:
docker: docker:
- image: grafana/grafana-ci-deploy:1.0.0 - image: grafana/grafana-ci-deploy:1.1.0
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .

View File

@ -42,7 +42,9 @@ aptly repo add "$REPO" ./dist
echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf
touch /tmp/sign-this
./scripts/build/update_repo/unlock-gpg-key.sh "$GPG_PASS" ./scripts/build/update_repo/unlock-gpg-key.sh "$GPG_PASS"
rm /tmp/sign-this /tmp/sign-this.asc
aptly publish repo grafana filesystem:repo:grafana aptly publish repo grafana filesystem:repo:grafana
aptly publish repo beta filesystem:repo:grafana aptly publish repo beta filesystem:repo:grafana