Commit Graph
100 Commits
Author SHA1 Message Date
Dimitris Sotirakis 95512c19e0 CI: Refactor versions.go (#55238)
* Refactor versions.go

* s/ReleaseModeConfig/BuildConfig
2022-09-16 06:26:33 -04:00
Dimitris Sotirakis 4e73766067 CI: Move store-storybook to OSS (#55212)
* Move store-storybook to OSS

* grabpl -> build for store-storybook command

* Replace zerolog with builtin log

* Remove flags from store-storybook

* Fix lint
2022-09-15 11:06:43 +03:00
Dimitris Sotirakis 244ccead9d Make lint-drone depend on compile-build-cmd (#55174) 2022-09-14 10:45:00 -04:00
Dimitris Sotirakis 5c40b053d0 Update grabpl (#55061) 2022-09-14 10:20:58 -04:00
Dimitris Sotirakis 5a1ba20856 CI: Split oss and enterprise steps for release pipelines (#55157)
* s/include_enterprise2/include_enterprise

* Get rid of get_steps def - include steps in separate defs
2022-09-14 09:47:02 -04:00
Dimitris Sotirakis 8b38f9408d Run codespell only on docs changes (#55064) 2022-09-14 16:32:08 +03:00
Dimitris Sotirakis 716bdde3f6 CI: Make shellcheck a standalone pipeline (#55082)
* Make shellcheck standalone pipeline

* Run shellcheck on every .sh change

* Change base image

* Trigger on script changes

* Run shellcheck on PRs only
2022-09-14 09:00:06 +03:00
Dimitris Sotirakis 9b42cf009a CI: Update build-container image to v1.6.2 (#55083)
* Update build container to v1.6.2

* Update Dockerfile
2022-09-13 15:43:02 +03:00
Dimitris Sotirakis ac0f5c5556 CI: Add export-version command (#55072)
* Add export-version command

* Fix lint

* 1-line cleanup
2022-09-13 13:26:24 +03:00
Dimitris Sotirakis 8c081d4523 Remove gen-version from windows pipelines (#54941) 2022-09-09 03:22:38 -04:00
Dimitris Sotirakis e277ab0017 CI: Call for Grafana version on demand - remove need for version.json (#54638)
* Remove need for version.json

* Fix lint

* log.Info -> fmt.Print

* Add back tests

* Remove non-used file

* Fix lint

* Update grabpl version to v3.0.6
2022-09-09 02:35:10 -04:00
Dimitris Sotirakis 8e577ce9fa CI: Trigger *-storybook steps on UI changes (#54833)
* No-op, small starlark refactoring

* Make build and store storybook steps execute on ui changes
2022-09-07 15:08:13 +03:00
Dimitris Sotirakis 8be3ea269d Default to pull_request events (#54640) 2022-09-02 17:39:05 +03:00
Dimitris Sotirakis 4735de6aa4 Run gen-version in windows pipelines (#54624) 2022-09-02 06:27:20 -04:00
Dimitris Sotirakis 212f0609eb Check if dist dir exists (#54590) 2022-09-01 10:43:04 -04:00
Dimitris Sotirakis 7e2238cf6f CI: Generate Grafana version (and metadata) when the build binary is built (#54393)
* Add GenerateVersions as BeforeFunc

* Delete gen-version

* Fix lint

* Get build id from env var
2022-09-01 15:43:40 +03:00
Dimitris Sotirakis 87f2b13efa CI: Update grabpl verison to v3.0.5 (#54269)
* Update grabpl

* Update to grabpl v3.0.5
2022-08-31 06:27:53 -04:00
Dimitris Sotirakis 239c4cdb25 Add CustomMode in versions.go (#54482) 2022-08-31 09:21:33 +03:00
Dimitris Sotirakis 933bbe228b Add PackagesBucketEnterprise2 field in config (#54449) 2022-08-30 10:47:12 -04:00
Dimitris Sotirakis 9be8b0564a Update whatsNewUrl (#54154) 2022-08-24 09:57:03 -05:00
Dimitris Sotirakis 50d0581000 Trigger backend tests on devenv changes (#54137) 2022-08-24 14:54:11 +03:00
Dimitris Sotirakis ceb32a7506 Add GCP_KEY secret to the artifacts-page pipeline (#54013) 2022-08-22 08:44:43 -05:00
Dimitris Sotirakis 332bc3aa63 CI: Split store-packages step (#53516)
* Remove unused def

* Add grafanacom step
2022-08-11 05:31:35 -04:00
Dimitris Sotirakis fa4abdcce1 Grafana Build: Sync Grafana versioning changes from build-pipeline (#53522)
* Sync version changes

(cherry picked from commit fb449ba0376cd7d86928e8b08ef77a851488604b)

Sync version refactoring changes

* Update grabpl
2022-08-11 11:44:59 +03:00
Dimitris Sotirakis e9fe9a25dc Run docs pipeline on *.md changes only, in the packages dir (#53517) 2022-08-10 13:39:56 +03:00
Dimitris Sotirakis d638cd4fd7 Trigger test release on pkg/cmd/** changes (#53448) 2022-08-09 08:21:09 -05:00
Dimitris Sotirakis bf30976200 Change from arm to armv7 (#53437) 2022-08-09 04:20:45 -04:00
Dimitris Sotirakis 499cac44e3 Remove packages-bucket arg (#53421) 2022-08-08 13:05:26 -04:00
Dimitris Sotirakis c472726083 Change base image for npm storage (#53419) 2022-08-08 12:43:44 -04:00
Dimitris Sotirakis 732c22ed02 CI: Update grabpl to v3.0.1 (#53369)
* Update grabpl to v3.0.0

* Update to v3.0.1
2022-08-08 12:08:55 -04:00
Dimitris Sotirakis ee8966344d Replace with anonymoud functions (#53386) 2022-08-08 08:09:52 -04:00
Dimitris Sotirakis 1d1fb07124 Make retrieve and release npm packages allowed to fail (#53191) 2022-08-03 08:24:32 -04:00
Dimitris Sotirakis 5d014f0c37 CI: Run main-docs pipeline only, when a docs PR is merged (#53026)
* Trigger docs pipeline on main, on docs only changes

* Export docs inclusion paths in variable
2022-08-03 08:08:43 -04:00
Dimitris Sotirakis cea4b3fb19 Make compile-build-cmd depend on init-enterprise (#53029) 2022-08-01 06:56:06 -04:00
Dimitris Sotirakis 1666871d48 Trigger pr-integration-tests pipeline only on backend changes (#53024) 2022-08-01 12:36:32 +03:00
Dimitris Sotirakis f215a35caf Docker: Install jq on build-container image (#52928)
* Install jq on build-container image

* Bump build-container version
2022-07-28 08:21:48 -05:00
Dimitris Sotirakis 12079a7285 Remove unused code (#52806) 2022-07-26 15:08:45 +01:00
Dimitris Sotirakis f26c49ecc0 Remove build-storybook from release-branch mode for enterprise (#52654) 2022-07-22 08:29:29 -04:00
Dimitris Sotirakis 6e6863f10a Remove condition - simplify code (#52637) 2022-07-22 12:23:08 +03:00
Dimitris Sotirakis 3b6cef9dfa CI: Refactor/Reorder *.star files (#52384)
* Refactor test pipelines

* Move pr, main and release starlark files under scripts/drone/event

* Move cron.star to scripts/drone/events

* Further unused code removal

* Introducing build.star

* Extract verify_drone.star

* Extract windows.star

* Extract publish.star

* Remove unused code

* Fix formatting in main.star
2022-07-20 09:43:19 -04:00
Dimitris Sotirakis 47678cd087 CI; Update Dockerfile for grafana/grafana-ci-deploy container (#52516)
* Use python 3.7 for gcloud

* Update comment for reference

* Update image version

* Update gcloud components
2022-07-20 06:34:09 -04:00
Dimitris Sotirakis 529289268b Docker: Install git in grafana/grafana-ci-deploy image (#52466)
* Install git in grafana/grafana-ci-deploy image

* Bump grafana/grafana-ci-deploy version
2022-07-19 11:04:16 -04:00
Dimitris Sotirakis e0d1af1867 Remove volumes from build-e2e pipeline on main (#52386) 2022-07-19 14:38:43 +03:00
Dimitris Sotirakis 2af5feb147 CI: Add pr-verify-drone pipeline (#51951)
* Introduce pr-verify-drone pipeline

* Remove `make drone` pre-commit hook

* Remove lint-drone from test-backend pipeline
2022-07-08 12:18:46 +03:00
Dimitris Sotirakis beb60a5de2 Make store packages depend on gen-version (#51916) 2022-07-07 15:13:47 -04:00
Dimitris Sotirakis 5cbb7003c0 Add artifacts-page grabpl command (#51894) 2022-07-07 11:00:28 -04:00
Dimitris Sotirakis 6447e08809 Add gen-version step to release pipelines (#51913) 2022-07-07 10:32:18 -04:00
Dimitris Sotirakis 88943590b3 Add gen-version for main-publish pipeline (#51890) 2022-07-07 12:58:20 +01:00
Dimitris Sotirakis f279699beb CI: Abstract Grafana versioning (#50935)
* Remove flags and update grabpl

* Sign drone yaml
2022-07-07 13:41:27 +03:00
Dimitris Sotirakis f351b9a923 Remove enterprise2 condition - move tests to release pipelines (#51096) 2022-06-21 14:44:51 +02:00
Dimitris Sotirakis 8a6ed3d81b Remove armv6 from build-backend variants (#50878) 2022-06-15 16:46:47 +03:00
Dimitris Sotirakis 443083c7df Bump version: Update main branch version to 9.1.0-pre (#50803)
* Update main branch version to 9.1.0-pre

* Update yarn.lock
2022-06-14 09:06:14 -07:00
Dimitris Sotirakis 7566f800e6 Include public/app/plugins/**/plugin.json in the BE test paths (#50756) 2022-06-14 12:22:52 +03:00
Dimitris Sotirakis 2dfa3270ef Fix docs - add *.md checks (#50720) 2022-06-13 19:05:08 +02:00
Dimitris Sotirakis 5633648383 Rename release pipelines (#50585) 2022-06-10 12:28:50 +02:00
Dimitris Sotirakis 63ed5367c3 Remove test_steps (#50396) 2022-06-08 14:00:52 +03:00
Dimitris Sotirakis 7b750cc0f0 Update Golang - bump grabpl and build-container (#50253) 2022-06-06 15:38:39 +02:00
Dimitris Sotirakis b6a329c268 CI: Trigger pr-test-* pipelines on different cases (#48426)
* Trigger pr-test-backend pipeline on pkg/* changes

* Exclude paths for pr-test-frontend pipeline

* Add more paths

* Revert *.md - trigger on go.* changes

* Replace star with doublestar
2022-06-01 11:47:50 +03:00
Dimitris Sotirakis 0d7a3209e7 etcd: Fix vuln CVE-2018-1098 (#49976)
* Update etcd

* Update go.sum

* Replace etcd with etcd/v3
2022-06-01 09:31:34 +02:00
Dimitris Sotirakis 3587a5559b Dependencies: Update etcd module (#49873)
* Update etcd

* Update go.sum

* Replace etcd due to broken module
2022-05-31 12:13:50 +03:00
Dimitris Sotirakis 696405ba7b Remove folder (#48617) 2022-05-05 12:19:35 +01:00
Dimitris Sotirakis 20f62e1841 CI: Split main tests pipeline (#48628)
* Split tests pipeline

* Rename dependencies
2022-05-03 13:54:47 +02:00
Dimitris Sotirakis b414ac5d8c Remove references from pr and main starlark (#48544) 2022-04-29 16:15:40 +01:00
Dimitris Sotirakis c3ba6f962b CI: Run docs pipeline only upon changes to root markdown files (#48433)
* Run docs pipeline only upon changes to root markdown files

* Include latest/json
2022-04-28 17:41:46 +03:00
Dimitris Sotirakis a7a5476ac2 CI: Split publish-packages pipeline (#48414)
* Split publish packages pipeline

* Small refactoring
2022-04-28 14:53:32 +03:00
Dimitris Sotirakis 67752ad88c Reorder dependencies for npm release steps (#48403) 2022-04-28 12:15:28 +02:00
Dimitris Sotirakis ff23f78b51 Split frontend and backend pipelines (#48362) 2022-04-28 12:04:03 +03:00
Dimitris Sotirakis 430b9ae5cb CI: Rename main pipelines (#48245)
* Rename main pipelines

* Rename dependencies
2022-04-26 11:40:13 +01:00
Dimitris Sotirakis 412be1f1cf Add yarn-install when publishing npm packages (#48061) 2022-04-21 16:31:39 +02:00
Dimitris Sotirakis 4510519941 Update grabpl (#47824) 2022-04-15 16:00:26 +02:00
Dimitris Sotirakis 508cc58a63 CI: Remove unused --github-token flag (#47773)
* Remove github token flag

* Minor cleanup

* Update grabpl
2022-04-15 10:42:58 +03:00
Dimitris Sotirakis 90892050d0 CI: Remove initialize step (#47622)
* Remove initialize step from pr.star

* Remove initialize step from main.star

* Remove initialize step from release.star

* Reorder dependencies

* Re-add identify runner step

* Add enterprise steps

* Remove is_downstream variable from starlark logic (#47715)

* Make init steps depend on init-enterprise for enterprise pipelines

* Exclude shellcheck from enterprise pipelines

* Add init steps to enterprise integration tests pipeline

* Add dependency for windows enterprise step

* Update grabpl version
2022-04-14 14:56:14 +03:00
Dimitris Sotirakis ab5e2e10ce Remove brackets (#47691) 2022-04-13 14:06:22 +02:00
Dimitris Sotirakis 1957863b67 Update grabpl (#47643) 2022-04-13 12:22:39 +03:00
Dimitris Sotirakis 3e030d137f CI: Remove unused downstream build pipelines (#47646)
* Remove unused downstream build pipelines

* Prettify
2022-04-12 16:36:49 +02:00
Dimitris Sotirakis cfaf058b20 Storybook: Add store-storybook command (#47557)
* Add store-storybook command

* Update grabpl version
2022-04-12 12:26:45 +03:00
Dimitris Sotirakis ce2a9252c2 Replace with secret (#47488) 2022-04-08 10:06:45 +02:00
Dimitris Sotirakis 0845ba1abb Make gsutil command don't fail if dir doesn't exist (#47394) 2022-04-07 09:30:09 +03:00
Dimitris Sotirakis 25e04d77be Storybook: Replace gsutil rsync with gsutil cp when copying artifacts (#47335)
* Replace gsutil rsync with cp

* Sync drone

* Remove folder before uploading artifacts
2022-04-06 13:31:36 +03:00
Dimitris Sotirakis c72881a8b1 Update grabpl version (#47375) 2022-04-06 11:08:05 +02:00
Dimitris Sotirakis bd386df617 CI: Run publishing steps only on OSS repo for main/version branches (#47315)
* Convert steps to run on OSS repo only

* Exclude versioned branches from publishing artifacts

* Change trigger -> when

* Add trigger to upload_* steps

* Add conditions to remaining steps

* Exclude release steps

* Bring back exclusion for release builds
2022-04-06 10:46:05 +03:00
Dimitris Sotirakis 305530224a Run slack notify on OSS repo only (#47194) 2022-04-01 14:20:26 +02:00
Dimitris Sotirakis eea20c4446 Remove check (#47173) 2022-04-01 10:02:49 +02:00
Dimitris Sotirakis ee92af8ebe Add dependencies (#47126) 2022-03-31 15:04:05 +03:00
Dimitris Sotirakis 65b0bd3017 CI: Update grabpl version - remove --no-pull-enterprise flag (#47013)
* Update grabpl version

* Sign drone

* Remove --no-pull-enterprise flag

* Sign drone

* Update grabpl
2022-03-31 11:06:59 +03:00
Dimitris Sotirakis a6f7bc4a5a Fix prettier:checkDocs command (#47044) 2022-03-30 11:44:18 +03:00
Dimitris Sotirakis 0e682397ab Add GH token when referring to remote - add --quite when running git push (#46926) 2022-03-24 15:01:49 +00:00
Dimitris Sotirakis 9bf82c37e3 Fetch tags after cloning (#46921) 2022-03-24 11:54:58 +00:00
Dimitris Sotirakis 758ccfb69e CI: Trigger release build upon drone yaml changes (#46882)
* Add trigger-test-release step

* Change cd command

* Add failure:ignore

* Add depth when cloning

* Fix wrong secret
2022-03-24 10:59:15 +00:00
Dimitris Sotirakis 85184ee9dc Update grabpl (#46639) 2022-03-16 13:31:20 +00:00
Dimitris Sotirakis a29159f362 Update golang (#46458) 2022-03-11 16:09:17 +01:00
Dimitris Sotirakis 82b436afee CI: Add more checks to standalone docs pipeline (#46449)
* Add build frontend package step

* Reorder dependencies

* Add codespell and prettier checks
2022-03-11 16:48:23 +02:00
Dimitris Sotirakis b409c9782f Update grabpl (#46253) 2022-03-04 16:31:39 +01:00
Dimitris Sotirakis 42dd4d687d CI: Change variants for pr_pipelines (#46170)
* Change variants for pr_pipelines

* Update grabpl
2022-03-03 16:39:03 +01:00
Dimitris Sotirakis 0012b89826 CI: Rename build variants - bump grabpl version (#46152)
* Update grabpl

* Change variants for pr_pipelines
2022-03-03 16:31:44 +02:00
Dimitris Sotirakis 2f6c827f5d CI: Introduce build-frontend-packages step (#45824)
* Split frontend build

* Fix command name

* Update grabpl
2022-03-02 13:02:07 +02:00
Dimitris Sotirakis 2f0dcbbd9d Update grabpl and build-container version (#45784) 2022-02-23 16:14:15 +02:00
Dimitris Sotirakis ea3e41ea62 CI: Add docs pipeline for main pipelines (#45740)
* Add docs pipeline for main

* Extract trigger docs

* Change trigger for main
2022-02-22 18:06:14 +00:00
Dimitris Sotirakis 02640c7436 Docs: Remove dependency between build-frontend and build-frontend-docs (#45736)
* Remove dependency

* Add yarn commands
2022-02-22 18:02:36 +02:00
Dimitris Sotirakis ded53e8e0e Remove --no-install-deps argument (#45718) 2022-02-22 13:22:45 +02:00