mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
67a29f763b
- Define extra (environment) vars to tasks - Able to create custom ansible jobs by defining parameters (infinite usabilities for user here) - Log output to db - Debug tasks - Ssh key for accessing inventory (separate from the key to access inventory api) -
15 lines
399 B
Go
15 lines
399 B
Go
package models
|
|
|
|
import "github.com/ansible-semaphore/semaphore/database"
|
|
|
|
type Environment struct {
|
|
ID int `db:"id" json:"id"`
|
|
ProjectID int `db:"project_id" json:"project_id"`
|
|
Password *string `db:"password" json:"password"`
|
|
JSON string `db:"json" json:"json"`
|
|
}
|
|
|
|
func init() {
|
|
database.Mysql.AddTableWithName(Environment{}, "project__environment").SetKeys(true, "id")
|
|
}
|