Commit 9154d701 by Arve Knudsen Committed by GitHub

CircleCI: Fix publishing of releases (#22342)

parent 252a2fdc
...@@ -126,6 +126,33 @@ jobs: ...@@ -126,6 +126,33 @@ jobs:
command: ./scripts/ci-job-succeeded.sh command: ./scripts/ci-job-succeeded.sh
when: on_success when: on_success
build-release-publisher:
description: "Build release-publisher"
executor: grafana-build
steps:
- checkout
- run:
name: CI job started
command: ./scripts/ci-job-started.sh
- run:
name: Test and build Grafana.com release publisher
command: |
cd scripts/build/release_publisher
go test .
go build -o release_publisher .
- persist_to_workspace:
root: .
paths:
- scripts/build/release_publisher/release_publisher
- run:
name: CI job failed
command: ./scripts/ci-job-failed.sh
when: on_fail
- run:
name: CI job succeeded
command: ./scripts/ci-job-succeeded.sh
when: on_success
shellcheck-grabpl: shellcheck-grabpl:
machine: true machine: true
steps: steps:
...@@ -329,7 +356,7 @@ jobs: ...@@ -329,7 +356,7 @@ jobs:
cp -r /tmp/workspace/oss/dist . cp -r /tmp/workspace/oss/dist .
rm -f dist/*latest* rm -f dist/*latest*
cd dist cd dist
../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -version "v$(cat grafana.version)" --nightly /tmp/workspace/scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -version "v$(cat grafana.version)" --nightly
publish-enterprise-master: publish-enterprise-master:
executor: grafana-publish executor: grafana-publish
...@@ -356,7 +383,7 @@ jobs: ...@@ -356,7 +383,7 @@ jobs:
cp -r /tmp/workspace/enterprise/dist . cp -r /tmp/workspace/enterprise/dist .
rm -f dist/*latest* rm -f dist/*latest*
cd dist cd dist
../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -version "v$(cat grafana.version)" --nightly /tmp/workspace/scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -version "v$(cat grafana.version)" --nightly
docker-oss-master: docker-oss-master:
executor: docker executor: docker
...@@ -1874,6 +1901,8 @@ workflows: ...@@ -1874,6 +1901,8 @@ workflows:
edition: enterprise edition: enterprise
requires: requires:
- install-grabpl - install-grabpl
- build-release-publisher:
filters: *filter-only-master
- codespell: - codespell:
filters: *filter-only-master filters: *filter-only-master
requires: requires:
...@@ -1963,6 +1992,7 @@ workflows: ...@@ -1963,6 +1992,7 @@ workflows:
- package-oss - package-oss
- build-oss-windows-installer - build-oss-windows-installer
- end-to-end-tests - end-to-end-tests
- build-release-publisher
- docker-oss-master: - docker-oss-master:
filters: *filter-only-master filters: *filter-only-master
requires: requires:
...@@ -1979,6 +2009,7 @@ workflows: ...@@ -1979,6 +2009,7 @@ workflows:
- package-enterprise - package-enterprise
- build-enterprise-windows-installer - build-enterprise-windows-installer
- end-to-end-tests - end-to-end-tests
- build-release-publisher
- docker-enterprise-master: - docker-enterprise-master:
filters: *filter-only-master filters: *filter-only-master
requires: requires:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment