Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task implementations for by-passing the java delegate #136

Merged
merged 13 commits into from
Jul 13, 2022
4 changes: 3 additions & 1 deletion command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
"os"

"github.com/drone-runners/drone-runner-aws/command/daemon"
"github.com/drone-runners/drone-runner-aws/command/delegate"
"github.com/drone-runners/drone-runner-aws/command/harness/delegate"
"github.com/drone-runners/drone-runner-aws/command/harness/dlite"
"github.com/drone-runners/drone-runner-aws/command/setup"

"gopkg.in/alecthomas/kingpin.v2"
Expand All @@ -28,6 +29,7 @@ func Command() {
registerExec(app)
daemon.Register(app)
delegate.RegisterDelegate(app)
dlite.RegisterDlite(app)
setup.Register(app)

kingpin.Version(version)
Expand Down
7 changes: 7 additions & 0 deletions command/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ type EnvConfig struct {
Acme bool `envconfig:"DRONE_HTTP_ACME"`
}

Dlite struct {
AccountID string `envconfig:"DLITE_ACCOUNT_ID"`
AccountSecret string `envconfig:"DLITE_ACCOUNT_SECRET"`
ManagerEndpoint string `envconfig:"DLITE_MANAGER_ENDPOINT"`
Name string `envconfig:"DLITE_NAME"`
}

Runner struct {
Name string `envconfig:"DRONE_RUNNER_NAME"`
Capacity int `envconfig:"DRONE_RUNNER_CAPACITY" default:"6"`
Expand Down
Loading