File tree Expand file tree Collapse file tree 6 files changed +38
-9
lines changed Expand file tree Collapse file tree 6 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ func InteractiveSetup(conf *util.ConfigType) {
113
113
114
114
dbPrompt := `What database to use:
115
115
1 - MySQL
116
- 2 - BoltDB
116
+ 2 - BoltDB (DEPRECATED!!!)
117
117
3 - PostgreSQL
118
118
4 - SQLite
119
119
`
Original file line number Diff line number Diff line change
1
+ alter table ` project__environment` drop ` source_storage_id` ;
2
+ alter table ` project__environment` drop ` source_storage_key` ;
1
3
alter table ` access_key` drop ` storage_id` ;
2
4
alter table ` access_key` drop ` source_storage_id` ;
3
5
alter table ` access_key` drop ` source_storage_key` ;
Original file line number Diff line number Diff line change @@ -18,4 +18,7 @@ create table project__secret_storage (
18
18
alter table ` access_key` add ` storage_id` int null references ` project__secret_storage` (` id` );
19
19
20
20
alter table ` access_key` add ` source_storage_id` int null references ` project__secret_storage` (` id` );
21
- alter table ` access_key` add ` source_storage_key` varchar (1000 );
21
+ alter table ` access_key` add ` source_storage_key` varchar (1000 );
22
+
23
+ alter table ` project__environment` add ` source_storage_id` int null references ` project__secret_storage` (` id` );
24
+ alter table ` project__environment` add ` source_storage_key` varchar (1000 );
Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ var Cookie *securecookie.SecureCookie
34
34
var WebHostURL * url.URL
35
35
36
36
const (
37
- DbDriverMySQL = "mysql"
38
- // Deprecated: replaced with sqlite
39
- DbDriverBolt = "bolt"
37
+ DbDriverMySQL = "mysql"
38
+ DbDriverBolt = "bolt" // Deprecated: replaced with sqlite
40
39
DbDriverPostgres = "postgres"
41
40
DbDriverSQLite = "sqlite"
42
41
)
@@ -203,7 +202,7 @@ type DebuggingConfig struct {
203
202
// ConfigType mapping between Config and the json file that sets it
204
203
type ConfigType struct {
205
204
MySQL * DbConfig `json:"mysql,omitempty"`
206
- BoltDb * DbConfig `json:"bolt,omitempty"`
205
+ BoltDb * DbConfig `json:"bolt,omitempty"` // Deprecated
207
206
Postgres * DbConfig `json:"postgres,omitempty"`
208
207
SQLite * DbConfig `json:"sqlite,omitempty"`
209
208
Original file line number Diff line number Diff line change 53
53
:rules =" [v => !!v || $t('name_required')]"
54
54
required
55
55
:disabled =" formSaving"
56
- class =" mb-2"
57
56
outlined
58
57
dense
59
58
></v-text-field >
60
59
60
+ <v-row >
61
+ <v-col >
62
+ <v-autocomplete
63
+ v-model =" item.source_storage_id"
64
+ :label =" $t('Secret Storage (optional)')"
65
+ :items =" secretStorages"
66
+ :disabled =" formSaving"
67
+ item-value =" id"
68
+ item-text =" name"
69
+ outlined
70
+ dense
71
+ clearable
72
+ />
73
+ </v-col >
74
+ <v-col >
75
+
76
+ <v-text-field
77
+ v-model =" item.source_storage_key"
78
+ :label =" $t('Source Key')"
79
+ :disabled =" formSaving || !item.source_storage_id"
80
+ outlined
81
+ dense
82
+ />
83
+ </v-col >
84
+ </v-row >
85
+
61
86
<v-tabs grow v-model =" tab" >
62
87
<v-tab key =" variables" >Variables</v-tab >
63
88
<v-tab key =" secrets" >Secrets</v-tab >
Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ export default {
403
403
404
404
computed: {
405
405
webHost () {
406
- return this .systemInfo ? .web_host || ' ' ;
406
+ return this .systemInfo ? .web_host || window . location . origin ;
407
407
},
408
408
409
409
premiumFeatures () {
@@ -420,7 +420,7 @@ export default {
420
420
421
421
runnerConfigCommand () {
422
422
return ` {
423
- "web_host": "${ this .webHost } ",
423
+ "web_host": "${ this .webHost || window . location . origin } ",
424
424
"runner": {
425
425
"token": "${ (this .newRunner || {}).token } ",
426
426
"private_key_file": "/path/to/private/key"
You can’t perform that action at this time.
0 commit comments