Guilherme Caulada
0f5b0489bb
[v9.4.x] CI: Rename scripts that build artifacts to use _build_ ( #77015 )
...
CI: Rename scripts that build artifacts to use _build_ (#77005 )
Rename scripts that build artifacts to use _build_
(cherry picked from commit 442e533803 )
2023-10-24 03:04:53 +03:00
Guilherme Caulada
2b54a169b2
[v9.4.x] CI: Update CI/CD tooling and pipelines from main ( #76881 )
...
* CI: Update CI/CD tooling and pipelines from main (#76814 )
* CI: Update CI/CD tooling and pipelines from main
* Update Makefile
* Comment out validate_openapi_spec_step
* Update broken frontend tests
* Fix validate-npm-packages regex to work without suffix
* Fix cypress image version
(cherry picked from commit 03ecb1db39 )
* Fix path for ./pkg/kindsys/report.go on Makefile
* Re-add ./pkg/cmd/grafana-cli/runner to make gen-go
2023-10-20 12:19:18 -03:00
Dimitris Sotirakis
6365037e69
[v9.4.x] CI: Remove 0.0.0-test tag event ( #76666 )
...
CI: Remove `0.0.0-test` tag event (#76662 )
Remove 0.0.0-test tag event
(cherry picked from commit faa22b8f20 )
# Conflicts:
# .drone.yml
# scripts/drone/pipelines/build.star
# scripts/drone/steps/lib.star
2023-10-17 09:18:55 +01:00
Horst Gutmann
10e4fb4cf2
[v9.4.x] Chore: Upgrade Go to 1.20.10 ( #76370 )
...
Chore: Upgrade Go to 1.20.10 (#76355 )
* [v10.1.x] Chore: Upgrade Go to 1.20.10
* Rebuild .drone.yml
(cherry picked from commit 4287686420 )
2023-10-11 18:03:42 +03:00
Horst Gutmann
78ec819807
[v9.4.x] Chore: Upgrade Alpine base image to 3.18.3 ( #74996 )
...
Chore: Upgrade Alpine base image to 3.18.3 (#74984 )
(cherry picked from commit 85abf2bebd )
2023-09-18 13:28:43 +03:00
Horst Gutmann
0ceb86a4c4
[v9.4.x] Chore: Upgrade Go to 1.20.8 ( #74981 )
...
Chore: Upgrade Go to 1.20.8 (#74978 )
chore: Update to Go 1.20.8
(cherry picked from commit 39dbd98458 )
2023-09-18 11:48:43 +03:00
Dimitris Sotirakis
d868da883e
[v9.4.x] Chore: Remove unused secret enterprise2-cdn-path - Nightlies: Push windows artifacts to GCS on main builds ( #74789 )
...
* Nightlies: Push windows artifacts to GCS on main builds (#74709 )
* Push windows artifacts to gcs
* Lint starlark
* Sign drone
(cherry picked from commit 02f617a20d )
# Conflicts:
# .drone.yml
* Chore: Remove unused secret `enterprise2-cdn-path` (#74741 )
Remove unused secret
# Conflicts:
# .drone.yml
(cherry picked from commit 49165d35ad )
# Conflicts:
# .drone.yml
2023-09-13 10:19:24 +02:00
Dimitris Sotirakis
a55a38d191
[v9.4.x] Nightlies: Bring back windows installers for main builds ( #74705 )
...
Bring back windows installers for main builds (#74698 )
(cherry picked from commit 36728dd671 )
# Conflicts:
# .drone.yml
2023-09-12 12:00:50 +03:00
Julien Duchesne
56a1bf85ea
[v9.4.x] CI: Get Github Token and Docker username/password from Vault ( #74570 )
...
CI: Get Github Token and Docker username/password from Vault (#74555 )
CI: Get Docker username/password from Vault
Not Drone secrets
(cherry picked from commit 566215c22c )
2023-09-08 08:31:35 +03:00
Dimitris Sotirakis
01466f0fd9
[v9.4.x] CI: Mount /root/.docker/ dir in authenticate-gcr step ( #74076 )
...
CI: Mount /root/.docker/ dir in authenticate-gcr step (#73977 )
Mount /root/.docker/ dir
(cherry picked from commit eea4adea29 )
# Conflicts:
# .drone.yml
2023-08-30 11:15:02 +03:00
Guilherme Caulada
b68e5715e8
[v9.4.x] CI: Use new release eng managed grafanacom api key ( #74032 )
...
CI: Use new release eng managed grafanacom api key (#74017 )
Use new release eng managed grafanacom api key
(cherry picked from commit ab7e655737 )
2023-08-29 12:07:39 -03:00
Dimitris Sotirakis
bd1c66f220
[v9.4.x] Security: Authenticate to GCR for trivy scans ( #73926 )
...
Security: Authenticate to GCR for trivy scans (#72658 )
* Authenticate to GCR for trivy scans
# Conflicts:
# .drone.yml
* verify-starlark
* Change secret
# Conflicts:
# .drone.yml
(cherry picked from commit e100fc927e )
# Conflicts:
# .drone.yml
# scripts/drone/vault.star
2023-08-28 16:00:24 +03:00
Dimitris Sotirakis
9aeb1db384
[v9.4.x] CI: Update secrets for publishing steps ( #73663 )
...
CI: Update secrets for publishing steps (#73658 )
Update secrets
(cherry picked from commit de118a3736 )
# Conflicts:
# .drone.yml
2023-08-23 11:41:49 +03:00
Horst Gutmann
d1485fed57
[v9.4.x] CI: Different secret for verification and do not ignore build failures ( #73618 )
...
CI: Different secret for verification and do not ignore build failures (#73613 )
(cherry picked from commit 8fc3be6b5a )
2023-08-22 16:34:04 +03:00
Horst Gutmann
7165da76cb
[v9.4.x] CI: Move npm token to Vault ( #73457 )
...
CI: Move npm token to Vault (#73407 )
(cherry picked from commit c86a73c794 )
2023-08-18 09:00:08 +03:00
Dimitris Sotirakis
67c5afb44b
[v9.4.x] CI: Update grabpl to v3.0.41 ( #73373 ) ( #73376 )
...
CI: Update `grabpl` to `v3.0.41` (#73373 )
Update grabpl
(cherry picked from commit 3463dc8e48 )
# Conflicts:
# .drone.yml
2023-08-17 13:08:42 +03:00
Guilherme Caulada and Kevin Minehart
abd2ccc250
[v9.4.x] CI: Update secret refs to vault ones; update downstream repo origin ( #72547 )
...
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:23 -03:00
Kevin Minehart and Guilherme Caulada
b8120d421d
[v9.4.x] CI: Make RGM the main pipeline for prerelease ( #72530 )
...
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:10 -03:00
Kevin Minehart
4201e7faea
[v9.4.x] CI: use base64 key in windows installer build step ( #72452 )
...
CI: use base64 key in windows installer build step (#72413 )
use base64 key
(cherry picked from commit b019ef9a89 )
2023-07-27 16:29:58 +03:00
Dimitris Sotirakis
9203d5b116
[v9.4.x] CI: Fix deb/rpm bug for linux package publishing ( #72422 )
...
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:58:24 +03:00
Kevin Minehart
d5d838eaa1
[v9.4.x] CI: use the base64 key in the windows installer steps ( #72379 )
...
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:00 -03:00
Guilherme Caulada
f35d160b67
[v9.4.x] CI: Fix verify-prerelease-assets pipeline ( #72230 )
...
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:56:54 +03:00
Kevin Minehart and Guilherme Caulada
41c04aecbb
[v9.4.x] CI: Run only Grafana builds on RGM for grafana/grafana ( #72159 )
...
* 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:36 -03:00
Guilherme Caulada
32830edc60
[v9.4.x] CI: Allow RGM to create msi for multiple editions ( #71892 )
...
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:16 -03:00
Guilherme Caulada
e3be6812ce
[v9.4.x] CI: Add rgm compatible windows msi pipeline ( #71857 )
...
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:07 -03:00
Guilherme Caulada and Dimitris Sotirakis
20f001649e
[v9.4.x] CI: Removes enterprise specific pipelines and steps ( #71775 )
...
[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:17:11 -03:00
Dimitris Sotirakis
be7557306c
[v9.4.x] CI: Fix broken env vars in publish-artifacts step ( #71645 )
...
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:31 +03:00
Emil Tullstedt
a4ab5bfaad
[v9.4.x] CI: Provide a Drone promotion to build the build-container ( #71350 )
...
CI: Provide a Drone promotion to build the build-container (#71133 )
(cherry picked from commit 7a9847e196 )
2023-07-11 14:04:23 +02:00
Kevin Minehart
19ea031bbd
[v9.4.x] CI: Add GPG keys to rgm, don't clone RGM just use the docker image ( #71231 )
...
* 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
(cherry picked from commit d5a4c81fa1 )
2023-07-07 20:23:39 +03:00
Dimitris Sotirakis
4486f323ec
[v9.4.x] CI: Cleanup - Remove security related steps ( #70793 )
...
CI: Cleanup - Remove security related steps (#70788 )
* Remove security related steps
* More cleanup
(cherry picked from commit 7f55ba9c6e )
2023-06-28 11:38:03 +03:00
Jack Baldry
4c56cef6af
[v9.4.x] Use docs/reference for flexible linking for content reused in Grafana Cloud ( #70270 )
...
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:45:27 +01:00
Dimitris Sotirakis
ca2c251be6
[v9.4.x] CI: Update grabpl to v3.0.39 ( #70134 )
...
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 13:11:38 +03:00
Dimitris Sotirakis
c1cddece45
[v9.4.x] CI: Add CI check for what's new link ( #70046 ) ( #70121 )
...
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
# scripts/drone/events/release.star
2023-06-15 09:43:55 +03:00
Dimitris Sotirakis
1a714ed0f5
[v9.4.x] Security Scans: Exclude windows container scans ( #69977 ) ( #69983 )
...
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 10:57:32 +03:00
Dimitris Sotirakis
0850edc137
[v9.4.x] Security Scans: Add trivy scans to every docker image used for building/testing/publishing ( #69911 ) ( #69920 )
...
* 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:32:09 +03:00
Ricky Whitaker and Kevin Minehart
8be48da766
Backport 69191 to v9.4.x ( #69197 )
...
* fix verify_release_pipeline script execution (#69191 )
* fix verify_release_pipeline script execution
* forgot to run make drone
(cherry picked from commit 68fe1e1cb0 )
* make drone
---------
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com >
2023-05-26 17:20:21 -05:00
Horst Gutmann
58b306eacf
[v9.4.x] CI: Pin the google/cloud-sdk image ( #69041 )
...
[v9.4.x] CI: Pin the google/cloud-sdk image (#69037 )
(cherry picked from commit f22d1d14a0 )
Backport of #69037
2023-05-25 10:56:33 +03:00
Kevin Minehart
136cb16a52
[9.4.x] Backport 68756 to v9.4.x ( #68932 )
...
CI: Add release verify pipeline (#68756 )
(cherry picked from commit 79f49c9649 )
2023-05-24 15:20:48 +02:00
Dimitris Sotirakis
324ba5c62b
[v9.4.x] G10: Replace beta with preview references ( #68347 ) ( #68948 )
...
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 02:21:50 -07:00
Dimitris Sotirakis
3b6ed3340d
[v9.4.x] CI: Run trigger-test-release only on PRs against main ( #68794 ) ( #68811 )
...
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
2023-05-22 15:09:55 +02:00
Dimitris Sotirakis
bba6777982
[v9.4.x] Docker images: Don't fail if a PR comes from a fork ( #68765 ) ( #68782 )
...
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 12:04:59 +02:00
Dimitris Sotirakis
409cec2e41
[v9.4.x] G10: Post docker pull commands for local testing ( #67489 ) ( #68684 )
...
* 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:48:24 +02:00
Dimitris Sotirakis
b31c0b7897
[v9.4.x] CI: Add delivery bot secrets to publish images step ( #68467 ) ( #68471 )
...
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 18:18:09 +03:00
Horst Gutmann
cd2ea25f54
[v9.4.x] CI: Update grabpl to 3.0.34 ( #68456 ) ( #68466 )
...
* CI: Port of init-enterprise fix from 9.4.10
* CI: Update grabpl to 3.0.34
(cherry picked from commit 35ccfa6131 )
Backport of https://github.com/grafana/grafana/pull/68456
2023-05-15 17:53:13 +03:00
Dimitris Sotirakis
eacc0bafea
[v9.4.x] CI: Add .drone.yml in pathschanged trigger for lint_backend pipeline ( #68348 ) ( #68367 )
...
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:08 +01:00
Horst Gutmann
93af60149d
[v9.4.x] CI: Move windows-tests into promotion pipeline ( #68218 ) ( #68233 )
...
(cherry picked from commit acd02e8a48 )
Backport of https://github.com/grafana/grafana/pull/68218
2023-05-10 17:53:09 +03:00
Horst Gutmann
d12a747a5d
[v9.4.x] CI: Add Windows backend tests in more places ( #66438 ) ( #68008 )
...
* 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 )
Backport of https://github.com/grafana/grafana/pull/66438
2023-05-08 17:04:37 +03:00
Sofia Papagiannaki
ff88bb0102
[v9.4.x] Chore: Upgrade Go to 1.20.4 ( #67760 )
...
Chore: Upgrade Go to 1.20.4
2023-05-04 10:53:16 +03:00
Emil Tullstedt
e37bbc7178
Chore: Upgrade Go to 1.20.3 ( #66836 )
...
Backport of #66264 .
2023-04-19 14:00:22 +02:00
Dimitris Sotirakis
0366e6f469
[v9.4.x] CI: Split /bin/build artifacts * subcommand ( #66005 ) ( #66344 )
...
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
(cherry picked from commit 24d348f804 )
# Conflicts:
# .drone.yml
2023-04-12 12:36:33 +03:00