@@ -2,11 +2,6 @@ version: 2.1
2
2
3
3
aliases :
4
4
# Workflow filters
5
- - &filter-only-release
6
- branches :
7
- only : chore/test-release-pipeline
8
- tags :
9
- only : /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
10
5
- &filter-only-master
11
6
branches :
12
7
only : master
@@ -110,13 +105,6 @@ jobs:
110
105
resource_class : large
111
106
executor : grafana-build
112
107
steps :
113
- - run :
114
- name : Exit if enterprise and forked PR
115
- command : |
116
- if [[ "<< parameters.edition >>" == "enterprise" && -n "$CIRCLE_PR_NUMBER" ]]; then
117
- echo "Nothing to do for forked PRs, so marking this step successful"
118
- circleci step halt
119
- fi
120
108
- checkout
121
109
- restore_cache :
122
110
keys :
@@ -188,13 +176,8 @@ jobs:
188
176
- run :
189
177
name : Build internal Grafana plug-ins
190
178
command : |
191
- if [[ -n "$CIRCLE_PR_NUMBER" ]]; then
192
- # This is a forked PR, so don't sign as it requires an API secret
193
- /tmp/grabpl build-plugins --jobs 2 --edition << parameters.edition >>
194
- else
195
- export GRAFANA_API_KEY=$GRAFANA_COM_API_KEY
196
- /tmp/grabpl build-plugins --jobs 2 --edition << parameters.edition >> --sign --signing-admin
197
- fi
179
+ export GRAFANA_API_KEY=$GRAFANA_COM_API_KEY
180
+ /tmp/grabpl build-plugins --jobs 2 --edition << parameters.edition >> --sign --signing-admin
198
181
- run :
199
182
name : Move artifacts
200
183
command : |
@@ -341,38 +324,6 @@ jobs:
341
324
command : " ./scripts/ci-job-succeeded.sh"
342
325
when : on_success
343
326
344
- release-next-packages :
345
- executor : grafana-build
346
- steps :
347
- - run :
348
- name : Exit if forked PR
349
- command : |
350
- if [[ -n "$CIRCLE_PR_NUMBER" ]]; then
351
- echo "Nothing to do for forked PRs, so marking this step successful"
352
- circleci step halt
353
- fi
354
- - checkout
355
- - run :
356
- name : CI job started
357
- command : ./scripts/ci-job-started.sh
358
- - run :
359
- name : Bootstrap lerna
360
- command : npx lerna bootstrap
361
- - run :
362
- name : npm - Prepare auth token
363
- command : " echo //registry.npmjs.org/:_authToken=$NPM_TOKEN >> ~/.npmrc"
364
- - run :
365
- name : Release next packages
366
- command : ./scripts/circle-release-next-packages.sh
367
- - run :
368
- name : CI job failed
369
- command : ./scripts/ci-job-failed.sh
370
- when : on_fail
371
- - run :
372
- name : CI job succeeded
373
- command : ./scripts/ci-job-succeeded.sh
374
- when : on_success
375
-
376
327
package-oss :
377
328
executor : grafana-build
378
329
steps :
@@ -389,11 +340,6 @@ jobs:
389
340
- run :
390
341
name : Package Grafana
391
342
command : |
392
- if [[ -n "$CIRCLE_PR_NUMBER" ]]; then
393
- echo Using test GPG key pair since building a forked PR
394
- source scripts/build/gpg-test-vars.sh
395
- fi
396
-
397
343
# Necessary for signing bundled plugins
398
344
export GRAFANA_API_KEY=$GRAFANA_COM_API_KEY
399
345
if [[ -n $CIRCLE_TAG ]]; then
@@ -528,11 +474,6 @@ jobs:
528
474
yarn install --frozen-lockfile --no-progress
529
475
yarn storybook:build
530
476
531
- if [[ -n "$CIRCLE_PR_NUMBER" ]]; then
532
- echo "Nothing to do for forked PRs, so marking this step successful"
533
- circleci step halt
534
- fi
535
-
536
477
if [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then
537
478
# We're testing the release pipeline
538
479
echo Testing release
@@ -830,9 +771,6 @@ jobs:
830
771
elif [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then
831
772
# We're testing the release pipeline
832
773
./scripts/circle-test-frontend.sh --edition << parameters.edition >> v7.0.0-test
833
- else
834
- # A master build
835
- ./scripts/circle-test-frontend.sh --edition << parameters.edition >> --build-id $CIRCLE_WORKFLOW_ID
836
774
fi
837
775
- store_test_results :
838
776
path : reports/junit
@@ -867,10 +805,6 @@ jobs:
867
805
# We're testing the release pipeline
868
806
/tmp/grabpl test-backend --github-token "${GITHUB_GRAFANABOT_TOKEN}" --edition << parameters.edition >> \
869
807
v7.0.0-test
870
- else
871
- # A master build
872
- /tmp/grabpl test-backend --github-token "${GITHUB_GRAFANABOT_TOKEN}" --edition << parameters.edition >> \
873
- --build-id $CIRCLE_WORKFLOW_ID
874
808
fi
875
809
- run :
876
810
name : CI job failed
@@ -881,45 +815,9 @@ jobs:
881
815
command : " ./scripts/ci-job-succeeded.sh"
882
816
when : on_success
883
817
884
- build-docs-website :
885
- executor : base
886
- steps :
887
- - checkout
888
- - setup_remote_docker
889
- - run :
890
- name : CI job started
891
- command : " ./scripts/ci-job-started.sh"
892
- - run :
893
- name : Build Grafana docs website
894
- command : |
895
- # Use latest revision here, since we want to catch if it breaks
896
- IMAGE=grafana/docs-base:latest
897
-
898
- # In order to copy sources into the remote container, we need to employ a trick of creating a container
899
- # with a volume, that we copy the sources into. Then, we launch the build container, with the volume
900
- # from the other container
901
- docker create -v /hugo/content/docs/grafana --name docs alpine:3.11 /bin/true
902
- docker cp ${PWD}/docs/sources docs:/hugo/content/docs/grafana/latest
903
- docker run --volumes-from docs $IMAGE /bin/bash -c 'make prod'
904
- - run :
905
- name : CI job failed
906
- command : " ./scripts/ci-job-failed.sh"
907
- when : on_fail
908
- - run :
909
- name : CI job succeeded
910
- command : " ./scripts/ci-job-succeeded.sh"
911
- when : on_success
912
-
913
818
release-packages :
914
819
executor : node
915
820
steps :
916
- - run :
917
- name : Exit if forked PR
918
- command : |
919
- if [[ -n "$CIRCLE_PR_NUMBER" ]]; then
920
- echo "Nothing to do for forked PRs, so marking this step successful"
921
- circleci step halt
922
- fi
923
821
- checkout
924
822
- run :
925
823
name : CI job started
@@ -1223,7 +1121,7 @@ workflows:
1223
1121
requires :
1224
1122
- package-enterprise
1225
1123
- release-packages :
1226
- filters : *filter-only- release
1124
+ filters : *filter-release
1227
1125
requires :
1228
1126
- end-to-end-tests
1229
1127
- mysql-integration-test
0 commit comments