mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
moved to drone-exec
This commit is contained in:
parent
b1150ce6fb
commit
ae324704bb
4 changed files with 10 additions and 11 deletions
6
Makefile
6
Makefile
|
@ -3,6 +3,12 @@
|
|||
SHA := $(shell git rev-parse --short HEAD)
|
||||
VERSION := 0.4.0-alpha
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
go run make.go bindata build
|
||||
|
||||
|
||||
# Execute the database test suite against mysql 5.5
|
||||
#
|
||||
# You can launch a mysql container locally for testing:
|
||||
|
|
2
make.go
2
make.go
|
@ -182,7 +182,6 @@ func build() error {
|
|||
}{
|
||||
{"github.com/drone/drone/cmd/drone-server", "bin/drone"},
|
||||
{"github.com/drone/drone/cmd/drone-agent", "bin/drone-agent"},
|
||||
{"github.com/drone/drone/cmd/drone-build", "bin/drone-build"},
|
||||
}
|
||||
for _, bin := range bins {
|
||||
ldf := fmt.Sprintf("-X main.revision=%s -X main.version=%s", sha, version)
|
||||
|
@ -267,7 +266,6 @@ func clean() error {
|
|||
files := []string{
|
||||
"bin/drone",
|
||||
"bin/drone-agent",
|
||||
"bin/drone-build",
|
||||
}
|
||||
|
||||
for _, file := range files {
|
||||
|
|
|
@ -144,7 +144,7 @@ func (r *Runner) Run(w *queue.Work) error {
|
|||
Repo: w.Repo,
|
||||
Build: w.Build,
|
||||
Job: job,
|
||||
Yaml: w.Yaml,
|
||||
Yaml: string(w.Yaml),
|
||||
}
|
||||
in, err := json.Marshal(work)
|
||||
if err != nil {
|
||||
|
@ -224,7 +224,7 @@ func (r *Runner) Run(w *queue.Work) error {
|
|||
Repo: w.Repo,
|
||||
Build: w.Build,
|
||||
Job: job,
|
||||
Yaml: w.Yaml,
|
||||
Yaml: string(w.Yaml),
|
||||
}
|
||||
in, err := json.Marshal(work)
|
||||
if err != nil {
|
||||
|
|
|
@ -32,7 +32,7 @@ var (
|
|||
DefaultAgent = "drone/drone-exec:latest"
|
||||
|
||||
// default name of the build agent executable
|
||||
DefaultEntrypoint = []string{"/bin/drone-build"}
|
||||
DefaultEntrypoint = []string{"/bin/drone-exec"}
|
||||
|
||||
// default argument to invoke build steps
|
||||
DefaultBuildArgs = []string{"--cache", "--clone", "--build", "--deploy"}
|
||||
|
@ -50,12 +50,7 @@ type work struct {
|
|||
Job *types.Job `json:"job"`
|
||||
System *types.System `json:"system"`
|
||||
Workspace *types.Workspace `json:"workspace"`
|
||||
Yaml []byte `json:"yaml"`
|
||||
|
||||
// Keys *types.Keypair `json:"keys"` // remove
|
||||
// Netrc *types.Netrc `json:"netrc"` // remove
|
||||
// Env []string `json:"environment"` // remove
|
||||
// Plugins []string `json:"plugins"` // remove
|
||||
Yaml string `json:"yaml"`
|
||||
}
|
||||
|
||||
type worker struct {
|
||||
|
|
Loading…
Reference in a new issue