Commit graph

166 commits

Author SHA1 Message Date
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Jordan Brockopp
af76d46b53 add page param for getting build list with offset 2018-02-02 13:03:40 -06:00
Александр Ангин
b892f566e5 fix missing semicolon in Postgres script's files 2018-01-22 10:40:11 +03:00
Brad Rydzewski
bb8c569249 add healthz endpoint to server 2017-10-05 14:17:27 -07:00
Brad Rydzewski
60cd607450 capture file metadata 2017-08-02 16:04:00 -04:00
Brad Rydzewski
bcdd5c9d06 implement file endpoints 2017-07-27 13:06:24 -04:00
Brad Rydzewski
c22dc6e5fa use boolean to filter active flag, postres change 2017-07-25 15:42:11 -04:00
Brad Rydzewski
005a28a638 fix postgres repo count 2017-07-25 15:37:58 -04:00
Brad Rydzewski
02a8a2a31f bump version; fix repo count metrics 2017-07-25 15:32:22 -04:00
Brad Rydzewski
15d92c5fa3 read user and log sql queries from file 2017-07-20 16:34:52 -04:00
Brad Rydzewski
d5200ad8b3 improve flush capability during sync 2017-07-16 13:37:16 -04:00
Brad Rydzewski
587b07c69b sync working with postgres and mysql 2017-07-15 12:51:02 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
37eb406092 update default visibility migration 2017-07-12 15:25:42 -04:00
Brad Rydzewski
6806883a0d fix mysql migration value 2017-07-12 15:22:49 -04:00
Brad Rydzewski
911e5f41a3 doh. fix migration for sqlite 2017-06-01 14:47:06 +02:00
Brad Rydzewski
860c611a37 update migration 2017-06-01 14:30:49 +02:00
Brad Rydzewski
ee54698c62 add migration function to remove null repo counters 2017-05-25 12:25:16 +02:00
Brad Rydzewski
08b320e365 update unit tests 2017-05-23 17:53:40 +02:00
Brad Rydzewski
3f45889ead fix merge conflicts 2017-05-23 14:43:50 +02:00
Brad Rydzewski
110c036e4e re-format counter update for postgres 2017-05-23 14:34:24 +02:00
Brad Rydzewski
f16dfaa9f0 increment build from counter 2017-05-23 12:43:58 +02:00
Brad Rydzewski
9ed9f8f1c9 change repo_visibility to text 2017-05-22 23:16:42 +02:00
Brad Rydzewski
c64a244c27 add visibility database field 2017-05-22 23:11:29 +02:00
Joachim Hill-Grannec
52ee6fa5be update varchar to 255 for the unique value to work for the migrations table. 2017-05-20 15:46:49 -04:00
Brad Rydzewski
298d78e370 bump column size for registry secret [ci skip] 2017-05-19 18:15:57 +02:00
Brad Rydzewski
28edaccf30 update generated sql code 2017-05-19 17:55:32 +02:00
Brad Rydzewski
3e45431aa8 sort by proc_id asc 2017-05-19 17:54:13 +02:00
Brad Rydzewski
a05cdafd92 add mysql and postgres impls 2017-05-19 17:51:28 +02:00
Brad Rydzewski
3d2753fd59 migrate seq number 2017-05-18 02:18:41 +02:00
Brad Rydzewski
07a8a545bb fix insert ignore syntax for mysql 2017-05-14 19:08:42 +02:00
Brad Rydzewski
b8c09865b7 migration improvements 2017-05-13 16:38:26 +02:00
Brad Rydzewski
c0354572c3 remove generated migration code from gitignore 2017-05-13 10:08:39 +02:00
Brad Rydzewski
cea842bed5 use generated migration 2017-05-13 09:56:23 +02:00
Brad Rydzewski
ccb28d0d74 commit embedded templates 2017-05-12 16:06:01 +02:00
Mikkel Oscar Lyderik Larsen
97946dad38
Order procs by proc_pid 2017-05-09 21:20:33 +02:00
Brad Rydzewski
3a64aa4cf2 simplify gating logic 2017-05-05 20:05:42 +02:00
Brad Rydzewski
4aac0bc4d6 re-use gated logic 2017-05-05 19:13:40 +02:00
Brad Rydzewski
4569b60f09 persist and compare yaml for gating 2017-05-05 18:59:37 +02:00
Brad Rydzewski
222bdd6854 setup queue service in main package 2017-05-04 02:02:08 +02:00
Brad Rydzewski
2f579e4b7d setup store in main() 2017-05-03 23:25:33 +02:00
Brad Rydzewski
e172de592f restore queue on restart 2017-04-14 13:32:36 +02:00
Brad Rydzewski
8348c858ba wip enable pluggable secret and registry backends 2017-04-11 19:06:45 +02:00
Brad Rydzewski
55d4ccd64e add registry management 2017-04-06 21:51:01 +09:00
Brad Rydzewski
76006d28ac restart build by clearing prior procs and logs 2017-04-04 19:50:15 +09:00
Brad Rydzewski
16a07e660a enable granular step data for matrix 2017-04-04 18:30:06 +09:00
Brad Rydzewski
0daee76aa8 use separate log table 2017-04-03 18:34:37 +09:00
Brad Rydzewski
ec88661d9e refactor job to proc 2017-04-02 23:13:26 +09:00
Brad Rydzewski
f090a2d34f fixed mysql ddl 2017-04-02 00:51:40 +09:00
Brad Rydzewski
6c11444de0 agent update build steps 2017-04-01 20:17:04 +09:00
Brad Rydzewski
aa3fc5123f enable postgres 2017-03-28 18:13:13 +09:00
Brad Rydzewski
c153db8c47 add pg and mysql database migrations 2017-03-28 17:57:57 +09:00
Brad Rydzewski
3118c07329 add proc and file structs 2017-03-28 17:53:06 +09:00
Brad Rydzewski
6246b32569 ability to customize yaml path 2017-03-19 16:44:57 +08:00
Brad Rydzewski
e319aaff15 add reviewer fields, endpoints 2017-03-18 16:49:27 +08:00
Brad Rydzewski
39bb69a27d fix mysql ddl build_error column 2017-03-13 23:30:41 +08:00
Brad Rydzewski
b4c4e92b5b handle compiler or lint error 2017-03-10 02:58:25 -08:00
Joachim Hill-Grannec
488ce878b3 Doesn’t need to check for SQLite again the the Progres list 2017-02-11 12:12:34 -08:00
Joachim Hill-Grannec
0699138c47 Merge branch 'master' into remove_size_limit 2017-02-04 19:58:51 -08:00
Joachim Hill-Grannec
e436db0862 temp fix to increase size on non SQLite db 2017-02-04 18:45:25 -08:00
Don
e77936f5c8 Implement backend for concealing secrets 2016-11-16 11:28:36 -08:00
Don
d58fcc9372 Fix ordering of secrets within merge 2016-10-24 15:08:16 -07:00
Brad Rydzewski
58f84ced84 Merge pull request #1825 from donny-dont/feature/global_secrets
Implementing global secrets
2016-10-25 00:03:20 +02:00
Brad Rydzewski
8a463d8f0c Merge pull request #1807 from joshq00/fix-mariadb-max-key-length
Fix: key exceeds max on MariaDB (MySQL) [ci skip]
2016-10-24 23:59:04 +02:00
Don
0852424cfe Implementing global secrets 2016-10-20 11:23:12 -07:00
Brad Rydzewski
01945b1ae5 Merge pull request #1824 from donny-dont/feature/secret_skip_verify_model
Adding SkipVerify to Secrets
2016-10-20 01:53:24 +02:00
Don
dfcaa78e85 Adding SkipVerify to Secrets 2016-10-19 13:04:08 -07:00
Vaidas Jablonskis
284fca370e Add a reference to parent build on forks / deploys 2016-10-19 13:28:18 +01:00
Josh Quintana
67a88c5d13 Fix: (MySQL) key exceeds max on MariaDB
Fixes MariaDB `Specified key was too long; max key length is 767 bytes` error
2016-10-08 14:31:56 -04:00
Marius Grigoriu
d8d0e47d01 fix typo in toListPosgres 2016-10-06 12:18:45 -07:00
Marius Grigoriu
0ace6aefd6 remove size limit in toList 2016-10-06 12:18:45 -07:00
Marius Grigoriu
be0ee06019 remove size limit in toListPosgres to accomodate users with access to many repositories 2016-10-06 12:18:45 -07:00
Thomas Boerger
4d43195479
Moved merged secret list into store 2016-08-01 23:03:31 +02:00
Thomas Boerger
889b88d38f
Integrated store layer for org secrets 2016-07-31 23:25:10 +02:00
Thomas Boerger
1b84375db5
Added migrations for team_secrets 2016-07-31 23:25:10 +02:00
Thomas Boerger
2cfdf8b294
Always return an empty collection within feed 2016-07-10 21:52:56 +02:00
Sandro Santilli
bf65ac03d9 Do not run an SQL query to get info about no repos
Closes #1649
2016-07-06 15:02:36 +02:00
Brad Rydzewski
67ac073164 repo feed for latest build only 2016-06-14 17:34:47 -07:00
Brad Rydzewski
64785c8b47 update yaml for s3 upload 2016-05-26 11:08:48 -07:00
Brad Rydzewski
752ce496d5 added code for agent to ping central drone server 2016-05-11 14:37:56 -07:00
Brad Rydzewski
447741b840 added query, endpoint, cli for build queue items 2016-05-10 22:19:45 -07:00
Brad Rydzewski
e7aa94f875 store signature and verification in database 2016-05-10 18:48:02 -07:00
Brad Rydzewski
cf6bf0763b fix mysql syntax error 2016-05-10 17:17:12 -07:00
Brad Rydzewski
850c00dbba drone exec and drone agent now share code 2016-05-10 17:03:24 -07:00
Brad Rydzewski
90408f20a5 resolve admin error in database 2016-05-02 12:27:22 -07:00
Brad Rydzewski
ebd547deac refactoring remotes to remove deprecated variables, adding tests 2016-05-01 16:30:00 -07:00
Brad Rydzewski
4d4003a9a1 moved 0.5 out of feature flag, removed deprecated 0.4 code and features 2016-04-28 14:10:32 -07:00
Brad Rydzewski
f3709922b3 added code to manage secrets 2016-04-23 04:27:28 -07:00
Brad Rydzewski
bcc768b157 fully functioning build using 0.5 agents 2016-04-21 00:25:30 -07:00
Brad Rydzewski
b5823d20ff chunk the yaml into sections 2016-04-19 18:37:53 -07:00
Brad Rydzewski
9b306a1bc8 load all things via middleware 2016-04-12 13:08:17 -07:00
Ivan Koptiev
be09e91d9f Google Cloud SQL support
Fixes #1373, adds support for `innodb_large_prefix=off`.
2016-04-04 23:13:38 +03:00
Brad Rydzewski
a24a974437 fixed param binding issue with postgres 2016-03-31 12:17:01 -07:00
Brad Rydzewski
7ffa88cc09 ability to store per-repository secrets & sign yaml 2016-03-31 12:01:32 -07:00
Brad Rydzewski
d3c1ba1254 Merge pull request #1543 from MetalMatze/pr/gofmt
Use gofmt to fmt & simplify
2016-03-27 12:19:02 -07:00
Matthias Loibl
2de58d1f90 Use gofmt to fmt & simplify 2016-03-27 01:24:09 +01:00
Matthias Loibl
c039bc7a16 Fix misspellings in comments
Found by https://goreportcard.com/report/github.com/drone/drone
2016-03-27 01:14:00 +01:00
Brad Rydzewski
3c7b33de7b fixed issue w/ test database driver 2016-03-25 13:24:16 -07:00
Brad Rydzewski
688b29b639 backported 0.5 database restructure to 0.4.1 2016-03-25 12:54:16 -07:00