Dimitris Sotirakis
a9e979b354
[v10.0.x] CI: Update secrets for publishing steps ( #73661 )
...
CI: Update secrets for publishing steps (#73658 )
Update secrets
(cherry picked from commit de118a3736 )
# Conflicts:
# .drone.yml
2023-08-23 11:29:56 +03:00
Horst Gutmann
3826d6fe54
[v10.0.x] CI: Move npm token to Vault ( #73456 )
...
CI: Move npm token to Vault (#73407 )
(cherry picked from commit c86a73c794 )
2023-08-18 08:59:34 +03:00
Dimitris Sotirakis
ce40646f56
[v10.0.x] CI: Update grabpl to v3.0.41 ( #73378 )
...
CI: Update `grabpl` to `v3.0.41` (#73373 )
Update grabpl
(cherry picked from commit 3463dc8e48 )
# Conflicts:
# .drone.yml
2023-08-17 13:05:54 +03:00
Christopher Moyer
172abdc95e
[Docs v10.x] Manual backport - Docs/k8s install update ( #72567 ) ( #72946 )
...
* Docs/k8s install update (#72567 )
* added before you begin section
* just syncing up
* added namespace and yaml mainfest sections
* started the managed k8s section
* added external-ip section
* added minikube instructions
* added deployment rollout section
* added rolling update section
* added rollback stratgety section
* added the logging section
* fixed many typos
* Update docs/sources/setup-grafana/installation/kubernetes/index.md
* Update docs/sources/setup-grafana/installation/kubernetes/index.md
* Update docs/sources/setup-grafana/installation/kubernetes/index.md
* Update docs/sources/setup-grafana/installation/kubernetes/index.md
* Update docs/sources/setup-grafana/installation/kubernetes/index.md
* adjust codeblock spacing
* adjusts steps
* copy edit throughout
* Apply suggestions from code review
* more copy edit, updates links
* fixed minor typos
* Apply suggestions from code review
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com >
* Apply suggestions from code review
* Apply suggestions from code review
* explained the dry-run example
* Move .codespellignore out of Drone so that technical writers can modify it
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
* Fix spelling errors
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
* Add .codespellignore CODEOWNER
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
Co-authored-by: Chris Moyer <chris.moyer@grafana.com >
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com >
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
(cherry picked from commit b1fd399c10 )
* Ensure changes are correct for this branch
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com >
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
2023-08-04 13:09:09 -05:00
Guilherme Caulada
d5c915bb5f
[v10.0.x] CI: Update secret refs to vault ones; update downstream repo origin ( #72549 )
...
CI: Update secret refs to vault ones; update downstream repo origin (#72515 )
Update secret refs to vault ones; update downstream repo origin
(cherry picked from commit 6669d0a704 )
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com >
2023-07-28 16:00:29 -03:00
Kevin Minehart
d76c886de9
[v10.0.x] CI: Make RGM the main pipeline for prerelease ( #72532 )
...
CI: Make RGM the main pipeline for prerelease (#72295 )
* Make RGM the main pipeline for prerelease
* Use grafana/grafana-build:dev-bd41660
* Use grafana/grafana-build:dev-fda506a
* Fix destination url
* Update vault secrets
* Move bucket path to environment
* Use grafana/grafana-build:dev-2f36afa
* Revert to grafana/grafana-build:main
* Add repo to rgm_main trigger
(cherry picked from commit 971f5f14be )
Co-authored-by: Guilherme Caulada <guilherme.caulada@grafana.com >
2023-07-28 12:31:35 -03:00
Kevin Minehart
e4d42c84a8
[v10.0.x] CI: use base64 key in windows installer build step ( #72454 )
...
CI: use base64 key in windows installer build step (#72413 )
use base64 key
(cherry picked from commit b019ef9a89 )
2023-07-27 16:26:10 +03:00
Dimitris Sotirakis
0b2178fe9c
[v10.0.x] CI: Fix deb/rpm bug for linux package publishing ( #72425 )
...
CI: Fix `deb/rpm` bug for linux package publishing (#72336 )
Fix deb/rpm
(cherry picked from commit c3ebd388e3 )
(cherry picked from commit 4c9bdef98dcfb24d8d24dac8117c9d3feb921a06)
# Conflicts:
# .drone.yml
(cherry picked from commit e3ec53b418 )
# Conflicts:
# .drone.yml
2023-07-27 09:53:33 +03:00
Kevin Minehart
8ba6bfc6dd
[v10.0.x] CI: use the base64 key in the windows installer steps ( #72382 )
...
CI: use the base64 key in the windows installer steps (#72372 )
use the base64 key in the windows installer steps
(cherry picked from commit 0c2b2219bb )
2023-07-26 12:04:18 -03:00
Guilherme Caulada
3c48b8f8f6
[v10.0.x] CI: Fix verify-prerelease-assets pipeline ( #72232 )
...
CI: Fix verify-prerelease-assets pipeline (#72226 )
* Fix verify-prerelease-assets pipeline
* Comment out unused assets
(cherry picked from commit 142cbc2ec6 )
2023-07-25 00:49:44 +03:00
Kevin Minehart
6ec2fdc829
[v10.0.x] CI: Run only Grafana builds on RGM for grafana/grafana ( #72161 )
...
* CI: Try setting the vault secret for 'grafana_api_key' (#71981 )
* Try setting the vault secret
* Maybe?
* forgot .drone.yml
* CI: Use GCP keys in vault and not drone secrets (#72023 )
* CI: Run only Grafana builds on RGM for grafana/grafana (#72144 )
* Run only OSS builds on RGM for grafana/grafana
* Update script name
* Ignore windows step failure for RGM
---------
Co-authored-by: Guilherme Caulada <guilherme.caulada@grafana.com >
2023-07-21 18:27:43 -03:00
Guilherme Caulada
857b275d61
[v10.0.x] CI: Allow RGM to create msi for multiple editions ( #71894 )
...
CI: Allow RGM to create msi for multiple editions (#71883 )
* Allow RGM to create msi for multiple editions
* Remove suffix from build-windows-installer step
* Invert exit code on verify_release_pipeline
(cherry picked from commit 4c80bcf35f )
2023-07-19 13:35:23 -03:00
Guilherme Caulada
f128a9780d
[v10.0.x] CI: Add rgm compatible windows msi pipeline ( #71858 )
...
CI: Add rgm compatible windows msi pipeline (#71678 )
* Add rgm compatible windows msi pipeline
* Fix dependencies and platform
* Fix missing arg comment
* Fix linting issues
* Try to fix version on file path
* Fix dependency on verify release pipeline
(cherry picked from commit 4caa773401 )
2023-07-18 13:51:32 -03:00
Guilherme Caulada
cf45b836ab
[v10.0.x] CI: Removes enterprise specific pipelines and steps ( #71782 )
...
[WIP] CI: Removes enterprise specific pipelines and steps (#70815 )
* Removes enterprise specific pipelines and steps (#123 )
* Comment out enterprise related pipelines and steps
* Suppress unused variable warning
* Removes all edition arguments
* Remove leftover comments
* Remove redundant oss on pipelines and steps names
* Remove leftover unused variable
* Remove leftovers
* Remove pipeline dependencies
* Rename pipelines
* Fix starlark
---------
Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com >
(cherry picked from commit 642a81ba75e79138246797302aba5c35575f030d)
* Add editions for static assets
(cherry picked from commit b13939b9af )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2023-07-18 11:21:11 -03:00
Dimitris Sotirakis
96b94e722a
[v10.0.x] CI: Fix broken env vars in publish-artifacts step ( #71647 )
...
CI: Fix broken env vars in publish-artifacts step (#71471 )
Fix env vars
(cherry picked from commit 64d2ff03c80c807c03390f63ba1834c5605fc96d)
# Conflicts:
# .drone.yml
(cherry picked from commit fd90737884 )
# Conflicts:
# .drone.yml
2023-07-17 11:53:51 +03:00
Emil Tullstedt
73f53a37dc
[v10.0.x] Chore: Upgrade Go to 1.20.6 ( #71445 )
...
Chore: Upgrade Go to 1.20.6
2023-07-12 15:32:58 +02:00
Emil Tullstedt
eeca760e94
[v10.0.x] CI: Provide a Drone promotion to build the build-container ( #71352 )
...
CI: Provide a Drone promotion to build the build-container (#71133 )
(cherry picked from commit 7a9847e196 )
2023-07-11 14:03:50 +02:00
Kevin Minehart
d147af2281
[v10.0.x] CI: Add GPG keys to rgm, don't clone RGM just use the docker image ( #71234 )
...
* CI: Add rgm to drone (#66991 )
* add drone stub that build grafana using 'grafana/build' (dagger)
---------
Co-authored-by: Ricky Whitaker <ricky.whitaker@grafana.com >
(cherry picked from commit 768efe9748 )
* Add dagger token to rgm builds (#68651 )
(cherry picked from commit a870b227db )
* CI: Add GPG keys to rgm, don't clone RGM just use the docker image (#71143 )
* Add GPG keys to rgm, dont' clone RGM just use the docker image
* remove the cd command
* forgot to make drone :(
* idk
* reference script more specifically
* i guess we'll just cd /src
* Only show not found artifacts
(cherry picked from commit d5a4c81fa1 )
2023-07-07 12:47:34 -05:00
Dimitris Sotirakis
ead5e970db
[v10.0.x] CI: Cleanup - Remove security related steps ( #70795 )
...
CI: Cleanup - Remove security related steps (#70788 )
* Remove security related steps
* More cleanup
(cherry picked from commit 7f55ba9c6e )
2023-06-28 11:38:39 +03:00
Jack Baldry
264fdb9e8b
[v10.0.x] Use docs/reference for flexible linking for content reused in Grafana Cloud ( #70267 )
...
Use docs/reference for flexible linking for content reused in Grafana Cloud (#70253 )
* Use docs/reference for flexible linking for content reused in Grafana Cloud
Documented in https://github.com/grafana/website/pull/13878
* Use docs-base image that has docs/reference shortcode
---------
(cherry picked from commit 3d15d54a71 )
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
2023-06-16 18:35:09 +01:00
Dimitris Sotirakis
115766e717
[v10.0.x] CI: Update grabpl to v3.0.39 ( #70136 )
...
CI: Update `grabpl` to `v3.0.39` (#70126 )
Update grabpl to v3.0.39
(cherry picked from commit b1e219e72c )
# Conflicts:
# .drone.yml
2023-06-15 12:09:17 +02:00
Dimitris Sotirakis
c7315074b2
[v10.0.x] CI: Add CI check for what's new link ( #70046 ) ( #70123 )
...
CI: Add CI check for `what's new` link (#70046 )
* Add whatsnewchecker
* Add whatsnewchecker_test
* Small fixes
* Add step in CI
* Fix lint
* Fix starlark
* t.Cleanup instead of separate func
* Skip check for test tags
(cherry picked from commit 91272ee4f9 )
# Conflicts:
# .drone.yml
2023-06-15 09:44:50 +03:00
Dimitris Sotirakis
287a3e545e
[v10.0.x] Security Scans: Exclude windows container scans ( #69977 ) ( #69980 )
...
Security Scans: Exclude windows container scans (#69977 )
* Exclude windows container scans
* Fixes according to reviewer's comments
(cherry picked from commit fa70fba0e3 )
# Conflicts:
# .drone.yml
2023-06-13 11:07:55 +03:00
Dimitris Sotirakis
7297540729
[v10.0.x] Security Scans: Add trivy scans to every docker image used for building/testing/publishing ( #69911 ) ( #69917 )
...
* Security Scans: Add trivy scans to every docker image used for building/testing/publishing (#69911 )
* Created images.star
* Fix typo
* Add cronjobs for build-images
(cherry picked from commit 2cda971796 )
# Conflicts:
# .drone.yml
# scripts/drone/services/services.star
# scripts/drone/steps/lib.star
* Fix rebasing issue
2023-06-12 17:26:58 +03:00
Andreas Christou
20a24dff7c
[v10.0.x] Azure: Fix Kusto auto-completion for Azure datasources ( #69685 ) ( #69695 )
...
Azure: Fix Kusto auto-completion for Azure datasources (#69685 )
* Fix Kusto auto-completion not working in HG
* Add update to script paths
* Update CODEOWNERS
* Missed the ts
(cherry picked from commit a6484c6f81 )
# Conflicts:
# yarn.lock
2023-06-07 09:04:09 -06:00
Ricky Whitaker
9710e15316
Backport 69191 to v10.0.x ( #69195 )
...
* fix verify_release_pipeline script execution (#69191 )
* fix verify_release_pipeline script execution
* forgot to run make drone
(cherry picked from commit 68fe1e1cb0 )
* finish resolving merge conflict
* make drone
---------
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com >
2023-05-26 17:14:56 -05:00
Horst Gutmann
c774f055d5
[v10.0.x] CI: Pin the google/cloud-sdk image ( #69037 ) ( #69038 )
...
(cherry picked from commit f22d1d14a0 )
Backport of #69037
2023-05-25 10:48:45 +03:00
Dimitris Sotirakis
d73bf1838e
[v10.0.x] G10: Replace beta with preview references ( #68347 ) ( #68950 )
...
G10: Replace `beta` with `preview` references (#68347 )
* Update references
* Update grabpl to v3.0.38
(cherry picked from commit 7e816d010c )
# Conflicts:
# .drone.yml
2023-05-24 10:14:43 +02:00
Kevin Minehart
d1f6d46edd
[v10.0.x] CI: Add release verify pipeline ( #68756 ) ( #68934 )
...
CI: Add release verify pipeline (#68756 )
(cherry picked from commit 79f49c9649 )
2023-05-24 00:18:15 +02:00
Dimitris Sotirakis
1a736942ae
[v10.0.x] CI: Run trigger-test-release only on PRs against main ( #68794 ) ( #68815 )
...
CI: Run `trigger-test-release` only on PRs against main (#68794 )
Run trigger-test-release only on PRs against main
(cherry picked from commit 623c014cda )
# Conflicts:
# .drone.yml
# Conflicts:
# .drone.yml
2023-05-22 15:08:48 +02:00
Dimitris Sotirakis
d5e62fa348
[v10.0.x] Docker images: Don't fail if a PR comes from a fork ( #68765 ) ( #68784 )
...
Docker images: Don't fail if a PR comes from a fork (#68765 )
* Update grabpl
* Allow publish images to fail for PRs
(cherry picked from commit 04e2d9055d )
# Conflicts:
# .drone.yml
2023-05-22 14:33:05 +02:00
Dimitris Sotirakis
996b4c30c2
[v10.0.x] G10: Post docker pull commands for local testing ( #67489 ) ( #68686 )
...
* G10: Post `docker pull` commands for local testing (#67489 )
* Add grabpl publish images
Update grabpl - add github pr token
* Replace github_pr_token with gh app
# Conflicts:
# .drone.yml
# scripts/drone/vault.star
# Conflicts:
# .drone.yml
# Conflicts:
# .drone.yml
* Lint starlark
Add forgotten secrets
Lint starlark
Change secrets
* Update grabpl to v3.0.35
* Lint starlark
* Remove unnecessary secrets
(cherry picked from commit 26bacf6d4c )
# Conflicts:
# .drone.yml
* Update grabpl to v3.0.36
2023-05-22 09:47:53 +02:00
Dimitris Sotirakis
d2f74c4942
[v10.0.x] CI: Add delivery bot secrets to publish images step ( #68467 ) ( #68473 )
...
CI: Add delivery bot secrets to publish images step (#68467 )
Add delivery bot secrets
(cherry picked from commit 55622615de )
# Conflicts:
# .drone.yml
# scripts/drone/vault.star
2023-05-15 16:58:38 +02:00
Horst Gutmann
67ad2032df
[v10.0.x] CI: Update grabpl to 3.0.34 ( #68456 ) ( #68475 )
...
* CI: Port of init-enterprise fix from 9.4.10
* CI: Update grabpl to 3.0.34
(cherry picked from commit 35ccfa6131 )
Backport https://github.com/grafana/grafana/pull/68456
2023-05-15 17:04:11 +03:00
Dimitris Sotirakis
032b615de2
[v10.0.x] CI: Add .drone.yml in pathschanged trigger for lint_backend pipeline ( #68348 ) ( #68369 )
...
CI: Add `.drone.yml` in pathschanged trigger for `lint_backend` pipeline (#68348 )
Add .drone.yml in pathschanged for lint_backend
(cherry picked from commit b7b13067a5 )
# Conflicts:
# .drone.yml
2023-05-12 13:25:27 +01:00
Horst Gutmann
0c44250bcb
[v10.0.x] CI: Move windows-tests into promotion pipeline ( #68218 ) ( #68229 )
...
(cherry picked from commit acd02e8a48 )
Backport of https://github.com/grafana/grafana/pull/68218
2023-05-10 17:32:21 +03:00
Horst Gutmann
65aad4912b
[v10.0.x] CI: Remove windows backend tests from release pipelines ( #68166 ) ( #68208 )
...
Remove windows backend tests from release pipelines
These are run in other places so there is no benefit to also include
them here.
(cherry picked from commit 1e8cad625b )
Backport of https://github.com/grafana/grafana/pull/68166
2023-05-10 15:17:20 +03:00
Horst Gutmann
8f26909611
[v10.0.x] CI: Add Windows backend tests in more places ( #66438 ) ( #68005 )
...
* CI: Add Windows backend tests in more places
* CI: Add promotion pipeline for publishing new windows-test-images
* CI: Ignore windows backend-test failures for now
* CI: Fix linting issue in ci_images.star file
(cherry picked from commit b2fc285a5d )
2023-05-08 16:42:14 +03:00
Sofia Papagiannaki
a219338afd
[v10.0.x] Chore: Upgrade Go to 1.20.4 ( #67752 )
...
Chore: Upgrade Go to 1.20.4
2023-05-04 10:28:07 +03:00
Ryan McKinley
ca1f79b9ba
Kindsys: Target k8s style resource definitions ( #67008 )
...
Co-authored-by: sam boyer <sdboyer@grafana.com >
2023-04-27 23:32:38 +03:00
Kristian Bremberg
35407142d0
Feature: Trusted Types support ( #64975 )
...
* Draft: Feature: Trusted Types support
* remove trusted-types package
* Create policy before jQuery and Angular is loaded and add feature flag
* Add trustedTypePolicies
* Sanitize scriptURL
* Add TT meta tag for test env
* Move trusted types into core
* Add DOMParser support for TrustedHTML
* Seperate RSS sanitization and add better TrustedHTML support
* Get test CSP header from config
* Remove dompurify dep from core
* Add documentation for trusted types
* Apply suggestions from code review
Co-authored-by: Kristian Bremberg <114284895+KristianGrafana@users.noreply.github.com >
* Add comment about Github discussion thread and things breaking
* Remove changes from News panel
* Remove TT feature toggle
* Expose TT and CSPReportOnly to frontend
* Log errors in console when CSP report only is enabled
* Log error for reporting and remove test mode
* Only insert CSP header in HTML for dev env
* Update docs
---------
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com >
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com >
2023-04-27 18:20:37 +02:00
Esteban Beltran
362936b002
Build: Force same version of @emotion/react via webpack config ( #66822 )
2023-04-24 17:13:52 +02:00
Jack Westbrook
5d4bf19efb
Fix: Canary NPM publishing ( #66734 )
...
fix(npm-publishing): strip protocol from registry so npm can auth correctly
2023-04-18 12:00:05 +02:00
Jack Westbrook
e97befa221
Fix: NPM canary releases ( #66727 )
...
* fix(packages): remove double trailing slash from npmrc credentials
* chore(packages): add new line to storybook config to trigger an npm canary release
2023-04-18 11:02:37 +02:00
Jack Westbrook
efa641040d
Build: Improve NPM publishing ( #65171 )
...
* chore(packages): remove redundant npm scripts for publishing packages
* feat(packages): rewrite npm publishing script to work for manual and ci publishes
* ci(drone): update release-canary-npm-packages step to use new script
* docs(packages): update manual release instructions
* wip(packages): attempt to validate packed npm package
* fix(packages): release-canary-npm-packages should provide canary dist-tag
* ci(packages): clean up npm package validation script
* chore(devenv): add verdaccio config to allow anon publishing for easier dev npm testing
* ci(packages): clean up publishing script
* ci(drone): during build-frontend-packages, pack and validate packed tarballs
* chore(codeowners): update for publish/validate npm packages scripts
* ci(packages): fix esm loop bug matching e2e package
* ci(npm-packages): fix failing regex
* style(lib.star): run make format-drone
* style(npm-packages): shellcheck fixes for validate-npm-packages script
* docs(packages): update readme instructions for publishing locally and manually
* refactor(npm-publish): use drone when to trigger canary releases
* chore(drone): remove redundant trigger_npm_publish var
* chore(npm-publish): remove redundant echo
2023-04-18 10:19:37 +02:00
Serge Zaitsev
391a192310
Chore: Try a different way to run integration tests ( #66653 )
...
* try a different way to run integration tests
* fix formatting
* clean test cache again
* use previous command
* playing around with random commands
* dont run tests in parallel yet
* use parallel option instead of gomaxprocs
* use same package set for redis/memcached; use p=1
2023-04-17 18:33:43 +02:00
Emil Tullstedt
202afb9041
Chore: Upgrade Go to 1.20.3 ( #66264 )
2023-04-14 10:01:14 +02:00
Dimitris Sotirakis
24d348f804
CI: Split /bin/build artifacts * subcommand ( #66005 )
...
* Split go files
* Modify publishartifacts.go
* Split main
* FIXME: Temp add GCSCopy to gcloud/storage
* Fix lint
* Exported flags
* Update starlark - make drone
* Further backend lint fixes
* Add fallback_test.go
* Fix go imports order
* make drone
* Remove GCSCopy from static assets
* Remove GCSCopy from storybook
* Fix lint
* Remove GCSCopy
* Remove success logline
* drone yaml cleanup
* Add artifacts-editions flag
* Fix starlark
* Add default sting slice in artifacts packages command
2023-04-12 11:47:40 +03:00
Sofia Papagiannaki
caac9838d8
Build: Fix Redis/Memcached integration tests ( #64298 )
...
* Build: Fix integration cache tests
* Allow REDIS_URL with scheme
* Reduce cache integration tests timeout to 5m
* Apply suggestion from code review
* Run redis/memcached integration tests in OSS pipelines
* Change redis image
2023-04-05 11:55:55 +03:00
Ricky Whitaker
c7d3c5a622
Rickywhitaker/verify repos update ( #65739 )
...
* initial commit of verify repo update
* consolidated duplicate verify-repos.sh commands into 1 with env vars
* fixing rpm versioned install
2023-04-04 11:17:12 -05:00