mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
fix(demo): fill required fields
This commit is contained in:
parent
e6c72fb330
commit
3fce9939f5
@ -49,7 +49,7 @@ func createDemoProject(projectID int, store db.Store) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
noneKey, err = store.CreateAccessKey(db.AccessKey{
|
||||
vaultKey, err := store.CreateAccessKey(db.AccessKey{
|
||||
Name: "Vault Password",
|
||||
Type: db.AccessKeyLoginPassword,
|
||||
ProjectID: &projectID,
|
||||
@ -101,6 +101,7 @@ func createDemoProject(projectID int, store db.Store) (err error) {
|
||||
ProjectID: projectID,
|
||||
Inventory: "/invs/dev/hosts",
|
||||
Type: "file",
|
||||
SSHKeyID: &noneKey.ID,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
@ -112,6 +113,7 @@ func createDemoProject(projectID int, store db.Store) (err error) {
|
||||
ProjectID: projectID,
|
||||
Inventory: "/invs/prod/hosts",
|
||||
Type: "file",
|
||||
SSHKeyID: &noneKey.ID,
|
||||
})
|
||||
|
||||
var desc string
|
||||
@ -163,6 +165,7 @@ func createDemoProject(projectID int, store db.Store) (err error) {
|
||||
RepositoryID: demoRepo.ID,
|
||||
BuildTemplateID: &buildTpl.ID,
|
||||
Autorun: true,
|
||||
VaultKeyID: &vaultKey.ID,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
@ -178,6 +181,7 @@ func createDemoProject(projectID int, store db.Store) (err error) {
|
||||
EnvironmentID: &emptyEnv.ID,
|
||||
RepositoryID: demoRepo.ID,
|
||||
BuildTemplateID: &buildTpl.ID,
|
||||
VaultKeyID: &vaultKey.ID,
|
||||
})
|
||||
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user