Commit Graph

218 Commits

Author SHA1 Message Date
Sofia Papagiannaki
2021a2df74
Update musl checksums (#21621) 2020-01-20 19:55:55 +02:00
Leonard Gram
b2c235c46d
Build: enables deployment of enterprise msi (#21607) 2020-01-20 09:26:27 +01:00
Leonard Gram
cc2586d250
CI: MSI for Enterprise (#21569)
* CI: ee msi build

* shellcheck

* Fake it so that we get a ee msi build on pull request runs

* fix error in prep job

* save msi for testing

* get enterprise zip

* Fixes to version and hash detection.

* Removes ci test code
2020-01-20 08:35:45 +01:00
Leonard Gram
72023d90bd
CI: Revert msi build (#21561)
* Revert "CI: adds missing files for ee msi (#21559)"

This reverts commit 6e412d88c9.

* Revert "CI: Enterprise MSI (#21518)"

This reverts commit d910f69b2c.
2020-01-17 12:10:29 +01:00
Leonard Gram
6e412d88c9
CI: adds missing files for ee msi (#21559) 2020-01-17 12:06:08 +01:00
Leonard Gram
d910f69b2c
CI: Enterprise MSI (#21518)
* build: builds msi for enterprise

* build: renamed msi generator directory

* build: build and deploy enterprise msi

* Build: placeholder license file for enterprise

* Build: correct name for ee msi
2020-01-17 11:33:43 +01:00
Leonard Gram
1c71637d11
Build: package all binaries for enterprise (#21381) 2020-01-07 16:00:58 +01:00
Leonard Gram
67d83d1ffc
build: adds IANA timezone info to windows build (#21001) 2019-12-10 16:00:37 +01:00
Vilhelm Prytz
83b402165d Remove un-used imports (#20937) 2019-12-10 11:29:15 +01:00
Arve Knudsen
37051cd844
Build: Verify checksums when downloading PhantomJS (#20558)
* Build: Supply curl -f when downloading phantomjs
* Build: Verify checksums of downloaded PhantomJS zips
2019-11-21 15:19:48 +01:00
Lukas Siatka
0a080beffa
DevEnv: updates nodejs from 10.x to 12.x and golang to 1.13 in ci-deploy dockerfile. (#20405)
* DevEnv: updates nodejs to 12.x and golang to 1.13

* Updates CI-build and CI-deploy image versions

* DevEnv: updates update repo readme

* DevEnv: updates build container version
2019-11-21 15:16:32 +01:00
Leonard Gram
65bacf2df6
CI: fix release script remove filtering (#20552) 2019-11-21 11:32:25 +01:00
Leonard Gram
d630ac4b68
CI: Build all platforms for Enterprise (#20389)
* CI: Build all platforms for Enterprise

* CI: publishes new enterprise builds to grafana.com
2019-11-21 09:41:32 +01:00
Arve Knudsen
4b8249341c
Build: Fix RPM verification (#20460) 2019-11-19 09:22:51 +01:00
Arve Knudsen
90b41e86f2
Fix package signing (#20451)
* Build: Fix package signing
2019-11-18 21:23:32 +01:00
Arve Knudsen
5ecc12505f
Build: Fix signing (#20450)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2019-11-18 18:50:47 +01:00
Arve Knudsen
e7e416cf8a
Build: Upgrade build-container Docker image version (#20443)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2019-11-18 16:12:06 +01:00
Arve Knudsen
4f6b49bc70
Upgrade build-container image (#20438)
* grafana/build-container: Upgrade to Ubuntu 18.04 base image
* grafana/build-container: Upgrade to Go 1.13.4
* grafana/build-container: Upgrade to Node 10.17.0
2019-11-18 15:07:08 +01:00
Dominik Prokop
de9ea829a4
Packages: stable release tags update (#20417)
* Update next npm tag when publishing stable release

* shellcheck fix
2019-11-17 19:51:57 +01:00
Dominik Prokop
4d741ea387
Build: Collect frontend build time metric (#20254) 2019-11-08 12:48:32 +01:00
Shavonn Brown
02a9bfb671 build: Ignore Azure test snapshot for msi build (long file name) (#20217)
assumption is that msi MAX_PATH is effectively 130 (260/2) for the full path of the filename (Dir + filename), and this causes error LGHT0103 : The system cannot find the file in the msi build.
2019-11-06 15:05:50 -05:00
Arve Knudsen
b3c00e4c32
Docker: Build and use musl-based binaries in alpine images to resolve glibc incompatibility issues (#19798)
* build: Install musl cross compilers as part of build Docker image
* build: Build also musl packages in scripts/build/build.sh
* scripts/build/build-all.sh: Build musl Linux targets
* build: Upgrade build-container to 1.2.11
* build.go: De-duplicate code
* build: Base Docker images on musl binaries
2019-10-24 14:34:14 +02:00
Arve Knudsen
d8b6a873d8
Chore: Upgrade Docker images to Go 1.13.1 (#19576)
* Chore: Upgrade Docker image/CI to Go 1.13.1

Fixes #18878

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Use golangci-lint master revision
2019-10-08 08:32:18 +02:00
Arve Knudsen
92765a6c6f
ci-build: Improve build-deploy script (#19653)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2019-10-07 14:17:17 +02:00
Marcus Efraimsson
d65a3318ab
Build: Upgrade go to 1.12.10 (#19499)
Fixes #19451
2019-09-30 15:41:25 +02:00
Dominik Prokop
dadc2925a2
Release: Make sure packages are released from clean git state (#19402) 2019-09-26 20:33:14 +02:00
Torkel Ödegaard
680a22b898
Build: fixed signing script issue with circle-ci (#19397) 2019-09-25 11:43:10 +02:00
Marcus Efraimsson
4386604751
Build: Split up task in the CI pipeline to ease running outside circleci (#18861)
* build: make sign rpm packages not depend on checking out private key

* build: move commands from circleci config into verify signed packages script

* build: split update and publish of deb and rpm into two scripts

* use files argument for sign and verify packages

* validate files argument for sign and verify packages

* update test publish of deb/rpm readme
2019-09-23 12:00:18 +02:00
Dominik Prokop
c2dea633e6
Packages: update versioning and release process (#18195) 2019-09-12 08:00:31 +02:00
Shavonn Brown
d38b6f02d0 MSI: new long file names are causing error building MSI (#18646)
* suspect long file names are causing err
2019-08-20 21:18:38 +02:00
Marcus Olsson
299a0e20f4
Build: Upgrade to go 1.12.9 (#18638)
* Build: Upgrade to go 1.12.9

* Build: Use default-mysql-client for debian buster

The go base image has been updated to use Debian Buster instead of
Stretch, which seems to have done away with mysql-client in favor of
default-mysql-client.

* Build: Update Dockerfile to use go 1.12.9

Fixes #18592
2019-08-20 12:29:42 +02:00
Oleg Gaidarenko
89a4f30eab Build: allow bash to expand the wildcard (#18354)
If wildcards are in the quotes they not going to be expanded
2019-08-02 13:22:50 +02:00
Oleg Gaidarenko
f9a6414b92
Build: fix use of env vars in parentheses execs (#18249)
* Build: fix use of env vars in parentheses execs

* Build: disable shellcheck rule SC2086 for a file

Follow up for 4b16cd6cc8
2019-07-24 15:54:48 +03:00
Oleg Gaidarenko
ba46cf40e4
Build: correct verify script (#18236)
Follow-up for 4b16cd6cc8
2019-07-23 16:47:50 +03:00
Oleg Gaidarenko
4b16cd6cc8
Build: Introduce shellcheck (#18081)
* Build: introduce shellcheck

Fixes #16198
2019-07-23 13:12:33 +03:00
Kyle Brandt
073851f9c7 Build: Upgrades to golang 1.12.6 (#17542) 2019-06-13 11:08:48 +02:00
Mario Trangoni
756989c10b Codestyle: Add typecheck and unused linters (#17491)
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2019-06-11 09:16:41 +02:00
Brian Gann
f98095d629 MSI: Generate sha256sum during MSI build process in circleci (#17120)
* build: generate sha256 during msi build
2019-05-21 09:58:07 +02:00
Brian Gann
d0ea98f6bd Build: Support publishing MSI to grafana.com (#17073)
* add test for msi, and support for publishing msi
* update arch and os in test
* Build: Fixed issues with os naming
2019-05-15 10:58:25 +02:00
Brian Gann
31ea0122a0
Add Windows MSI generation to build process (#16502)
- add MSI generation to build process
2019-05-02 10:47:58 -05:00
Brian Gann
157f330cf2
area/circleci: Speed up circleci build process for branches and pr (#16778)
* speed up circleci build
* convert build.sh to functions and add args for different build types
* add yarn cache
* add build latest to packaging step
* fast build should not try to tag non-amd builds
* remove signing step for prs-and-branches
2019-05-01 10:20:01 -05:00
Carl Bergquist
9134251417
build: upgrades to golang 1.12.4 (#16545)
fix govet issue in golang 1.12.4
2019-04-15 09:18:28 +02:00
Carl Bergquist
30dcf0f6c5
Revert "Build: Upgrades to go 1.12.3 (#16491)" (#16544)
This reverts commit 44b365028f.
2019-04-12 11:17:31 +02:00
Carl Bergquist
44b365028f
Build: Upgrades to go 1.12.3 (#16491)
fixes go vet issue that 1.12.3 detects
2019-04-12 09:44:02 +02:00
Leonard Gram
6baba64935
build: Fixed incorrect permissions for repo folders in ci-deploy. (#16360) 2019-04-03 15:24:34 +02:00
Torkel Ödegaard
dc4bc426f5 Build: Moved the failing appveyor file so we can get green builds in master 2019-03-30 06:41:27 +01:00
Leonard Gram
8dfa1f4c12 build: fixes publishing version. 2019-03-25 15:01:45 +01:00
Leonard Gram
768c7b6f4a build: updated build container with support for rpi1. 2019-03-25 09:48:45 +01:00
Leonard Gram
ff977331f4 build: support for publishing armv6. 2019-03-25 09:48:45 +01:00
Leonard Gram
6e802dc94d build: builds armv6 with rpi1 compat gcc. 2019-03-25 09:48:45 +01:00
Leonard Gram
95f7a91328
Merge pull request #16069 from xlson/ci-deploy-speedup
build: crcmod speedups rsync to gcp for deploy.
2019-03-19 14:13:15 +01:00
Leonard Gram
4dceb60d20 build: migrates the build container into the main repo. 2019-03-19 11:34:01 +01:00
Leonard Gram
39e75d75b4 build: crcmod speedups rsync to gcp for deploy. 2019-03-19 10:48:41 +01:00
Leonard Gram
dc155dfa2f docs: howto for recreating our debian repositories. 2019-02-19 16:52:47 +01:00
Torkel Ödegaard
d7f81c4795 Updated version and made some changes to changelog and what's new article 2019-01-30 17:14:42 +01:00
Leonard Gram
55f2495afa build: publishes armv6 to grafana.com.
Stops using the old publisher completely.

Closes #13008
2019-01-28 16:33:24 +01:00
Mario Trangoni
4b68055c16 scripts/build/*: Fix some golint issues
See,

$ gometalinter --vendor --disable-all --enable=golint ./...
build/release_publisher/externalrelease.go:55:6⚠️ type getHttpContents should be getHTTPContents (golint)
build/release_publisher/publisher.go:18:2⚠️ struct field apiUri should be apiURI (golint)
build/release_publisher/publisher.go:66:6⚠️ exported type ReleaseType should have comment or be unexported (golint)
build/release_publisher/publisher.go:69:2⚠️ exported const STABLE should have comment (or a comment on this block) or be unexported (golint)
build/release_publisher/publisher.go:185:16⚠️ should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
build/release_publisher/publisher_test.go:102:6⚠️ type mockHttpGetter should be mockHTTPGetter (golint)
2019-01-25 11:21:47 +01:00
Mario Trangoni
d5f63d9988 scripts/build/*: Fix golint issues Url => URL
$ gometalinter --vendor --disable-all --enable=golint ./... | grep -i URL
build/publish.go:18:5⚠️ var apiUrl should be apiURL (golint)
build/publish.go:184:2⚠️ struct field WhatsNewUrl should be WhatsNewURL (golint)
build/publish.go:185:2⚠️ struct field ReleaseNotesUrl should be ReleaseNotesURL (golint)
build/publish.go:191:2⚠️ struct field Url should be URL (golint)
build/release_publisher/externalrelease.go:17:53⚠️ method parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/externalrelease.go:17:69⚠️ method parameter whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/externalrelease.go:17:89⚠️ method parameter releaseNotesUrl should be releaseNotesURL (golint)
build/release_publisher/localrelease.go:20:45⚠️ method parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/localrelease.go:20:61⚠️ method parameter whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/localrelease.go:20:81⚠️ method parameter releaseNotesUrl should be releaseNotesURL (golint)
build/release_publisher/localrelease.go:45:41⚠️ method parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/localrelease.go:51:84⚠️ func parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/main.go:12:6⚠️ var whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/main.go:13:6⚠️ var releaseNotesUrl should be releaseNotesURL (golint)
build/release_publisher/main.go:40:6⚠️ var baseUrl should be baseURL (golint)
build/release_publisher/main.go:94:6⚠️ func createBaseUrl should be createBaseURL (golint)
build/release_publisher/publisher.go:21:2⚠️ struct field baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/publisher.go:26:17⚠️ interface method parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/publisher.go:26:33⚠️ interface method parameter whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/publisher.go:26:53⚠️ interface method parameter releaseNotesUrl should be releaseNotesURL (golint)
build/release_publisher/publisher.go:29:31⚠️ method parameter whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/publisher.go:29:51⚠️ method parameter releaseNotesUrl should be releaseNotesURL (golint)
build/release_publisher/publisher.go:91:24⚠️ method getUrl should be getURL (golint)
build/release_publisher/publisher.go:91:31⚠️ method parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/publisher.go:190:15⚠️ func parameter baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/publisher.go:199:21⚠️ method apiUrl should be apiURL (golint)
build/release_publisher/publisher.go:257:2⚠️ struct field WhatsNewUrl should be WhatsNewURL (golint)
build/release_publisher/publisher.go:258:2⚠️ struct field ReleaseNotesUrl should be ReleaseNotesURL (golint)
build/release_publisher/publisher.go:264:2⚠️ struct field Url should be URL (golint)
build/release_publisher/publisher_test.go:10:3⚠️ struct field whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/publisher_test.go:11:3⚠️ struct field relNotesUrl should be relNotesURL (golint)
build/release_publisher/publisher_test.go:17:3⚠️ struct field expectedUrl should be expectedURL (golint)
build/release_publisher/publisher_test.go:18:3⚠️ struct field baseArchiveUrl should be baseArchiveURL (golint)
build/release_publisher/publisher_test.go:109:2⚠️ var whatsNewUrl should be whatsNewURL (golint)
build/release_publisher/publisher_test.go:110:2⚠️ var relNotesUrl should be relNotesURL (golint)
2019-01-25 11:21:47 +01:00
Leonard Gram
2bdc147e55 build: skips building rpm for armv6. 2019-01-22 11:09:27 +01:00
Leonard Gram
5f188058e3 build: builds for armv6. 2019-01-22 11:09:27 +01:00
Leonard Gram
dce180e8ac
Merge pull request #14924 from xlson/repo-update-improvements
Repo update stability improvements
2019-01-17 16:56:10 +01:00
Leonard Gram
aafa66f644 build: usage instruction for repo test. 2019-01-17 16:55:12 +01:00
Leonard Gram
a95fe15437 build: comments 2019-01-17 16:42:27 +01:00
Leonard Gram
9ecfc39ba5 build: fixes the path for gsutil and gcloud. 2019-01-17 14:02:10 +01:00
Leonard Gram
18004562a6 build: fixes permissions issue. 2019-01-17 13:40:40 +01:00
Leonard Gram
d71f1bf4bc build: only build amd64 for enterprise. 2019-01-17 11:00:34 +01:00
Leonard Gram
7ac859715d build: test script for rpm repo. 2019-01-17 10:17:59 +01:00
Leonard Gram
cae2bdf994 build: deb repo update test usage instructions. 2019-01-16 16:18:10 +01:00
Leonard Gram
38bcb88d8a build: uploads binaries before metadata in deb repo. 2019-01-16 16:05:45 +01:00
Leonard Gram
b3512f43a3 build: repo update testable and more robus.
- adds script for integration testing
- package path parameterized
- more robust updates
2019-01-16 11:11:00 +01:00
Leonard Gram
7b43b9e272 build: fixes release problems. 2019-01-14 16:23:48 +01:00
Leonard Gram
b1f5a232da build: build specific enterprise version when releasing. 2019-01-14 13:43:59 +01:00
Leonard Gram
a82f0ed393 build: tags arm as well as amd64 as latest. 2019-01-10 14:41:02 +01:00
Johannes Würbach
702d449001 Docker image for ARM 2019-01-10 14:41:02 +01:00
Leonard Gram
13a962cc50 Revert "Docker image for ARM"
This reverts commit 5f7e6a5c73.
2019-01-09 16:25:07 +01:00
Johannes Würbach
5f7e6a5c73 Docker image for ARM 2019-01-09 15:09:13 +01:00
Leonard Gram
ad61bff377 build: deploys enterprise to its own repo. 2019-01-09 11:42:55 +01:00
Leonard Gram
76e9607b25 build: inline docs 2019-01-09 11:42:55 +01:00
Leonard Gram
b9c4eb70b1 build: publishes beta releases to separate repos. 2019-01-09 11:42:55 +01:00
Leonard Gram
8f5886e6d4 refactoring 2019-01-09 11:42:55 +01:00
Leonard Gram
bbbeb78c17 build: makes repo update enterprise compatible. 2019-01-09 11:42:55 +01:00
Leonard Gram
a98c75121f build: adds aptly and createrepo to deploy tools. 2019-01-09 11:42:55 +01:00
Leonard Gram
31066aebb4 build: handles unexpected cases. 2019-01-09 11:42:55 +01:00
Leonard Gram
919617ef96 build: only adds the correct packages to the repo. 2019-01-09 11:42:55 +01:00
Leonard Gram
c3e23d7574 build: rpm repo deploy. 2019-01-09 11:42:55 +01:00
Leonard Gram
a26a10cfd1 build: repo update input error. 2019-01-09 11:42:55 +01:00
Leonard Gram
7fea1f84c0 build: release of debs to our debian repo. 2019-01-09 11:42:55 +01:00
Mario Trangoni
e4771a88dd Fix other misspell issues
See,
$ find . -type f | xargs misspell -locale US | grep -vi -e vendor -e node_modules -e devenv -e unknwon -e destory -e yarn -e adn -e Spindel
2018-11-29 18:15:16 +01:00
Leonard Gram
ce9e1a8f38 build: explaining the linux build. 2018-11-28 09:25:48 +01:00
Leonard Gram
82c98a5ff4 build: packages linked to dl.grafana.com. 2018-11-23 16:51:01 +01:00
Marcus Efraimsson
e421c387ea
update release publish script links 2018-11-20 16:23:24 +01:00
Leonard Gram
1a554e2421 linters. 2018-11-20 09:01:52 +01:00
Leonard Gram
7e2298ce31 build: correct filters for ge build artifacts. 2018-11-20 09:01:52 +01:00
Leonard Gram
84832cb6cb build: releaser supports releasing only some artifacts. 2018-11-20 09:01:52 +01:00
Leonard Gram
b041ad4134 linter. 2018-11-19 14:32:39 +01:00
Leonard Gram
ac55aeff95 build: minor refactor. 2018-11-19 14:12:04 +01:00
Leonard Gram
8f0d3ff7ea build: fixes a bug where nightly rpm builds would be handled as stable. 2018-11-19 14:06:18 +01:00
Leonard Gram
2d361eeabf builds: introduces enum for relase type. 2018-11-19 13:26:35 +01:00
Leonard Gram
e2007733f4 build: table-driven tests for publisher. 2018-11-19 11:20:44 +01:00
Leonard Gram
ac8731b9fb build: enabled darwin build. 2018-11-16 14:50:27 +01:00