Skip to content

Commit

Permalink
Project is renamed to Woodpecker
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Aug 27, 2019
1 parent 7d43fa2 commit 630c383
Show file tree
Hide file tree
Showing 189 changed files with 432 additions and 432 deletions.
22 changes: 11 additions & 11 deletions .cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ set -x
export CGO_ENABLED=0

# compile for all architectures
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/linux/amd64/drone github.com/laszlocph/drone-oss-08/cli/drone
GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/linux/arm64/drone github.com/laszlocph/drone-oss-08/cli/drone
GOOS=linux GOARCH=arm go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/linux/arm/drone github.com/laszlocph/drone-oss-08/cli/drone
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/windows/amd64/drone github.com/laszlocph/drone-oss-08/cli/drone
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/darwin/amd64/drone github.com/laszlocph/drone-oss-08/cli/drone
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/linux/amd64/woodpecker github.com/laszlocph/woodpecker/cli/woodpecker
GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/linux/arm64/woodpecker github.com/laszlocph/woodpecker/cli/woodpecker
GOOS=linux GOARCH=arm go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/linux/arm/woodpecker github.com/laszlocph/woodpecker/cli/woodpecker
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/windows/amd64/woodpecker github.com/laszlocph/woodpecker/cli/woodpecker
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o cli/release/darwin/amd64/woodpecker github.com/laszlocph/woodpecker/cli/woodpecker

# tar binary files prior to upload
tar -cvzf cli/release/drone_linux_amd64.tar.gz -C cli/release/linux/amd64 drone
tar -cvzf cli/release/drone_linux_arm64.tar.gz -C cli/release/linux/arm64 drone
tar -cvzf cli/release/drone_linux_arm.tar.gz -C cli/release/linux/arm drone
tar -cvzf cli/release/drone_windows_amd64.tar.gz -C cli/release/windows/amd64 drone
tar -cvzf cli/release/drone_darwin_amd64.tar.gz -C cli/release/darwin/amd64 drone
tar -cvzf cli/release/woodpecker_linux_amd64.tar.gz -C cli/release/linux/amd64 woodpecker
tar -cvzf cli/release/woodpecker_linux_arm64.tar.gz -C cli/release/linux/arm64 woodpecker
tar -cvzf cli/release/woodpecker_linux_arm.tar.gz -C cli/release/linux/arm woodpecker
tar -cvzf cli/release/woodpecker_windows_amd64.tar.gz -C cli/release/windows/amd64 woodpecker
tar -cvzf cli/release/woodpecker_darwin_amd64.tar.gz -C cli/release/darwin/amd64 woodpecker

# generate shas for tar files
sha256sum cli/release/*.tar.gz > cli/release/drone_checksums.txt
sha256sum cli/release/*.tar.gz > cli/release/woodpecker_checksums.txt
8 changes: 4 additions & 4 deletions .drone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

go build -ldflags '-extldflags "-static" -X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/laszlocph/drone-oss-08/cmd/drone-server
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
go build -ldflags '-extldflags "-static" -X github.com/laszlocph/woodpecker/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/laszlocph/woodpecker/cmd/drone-server
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/woodpecker/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/laszlocph/woodpecker/cmd/drone-agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/woodpecker/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/laszlocph/woodpecker/cmd/drone-agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/laszlocph/woodpecker/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/laszlocph/woodpecker/cmd/drone-agent
28 changes: 14 additions & 14 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ clone:

workspace:
base: /go
path: src/github.com/laszlocph/drone-oss-08
path: src/github.com/laszlocph/woodpecker

pipeline:
test:
Expand All @@ -23,15 +23,15 @@ pipeline:
- DATABASE_DRIVER=postgres
- DATABASE_CONFIG=host=postgres user=postgres dbname=postgres sslmode=disable
commands:
- go test github.com/laszlocph/drone-oss-08/store/datastore
- go test github.com/laszlocph/woodpecker/store/datastore

test_mysql:
image: golang:1.12.4
environment:
- DATABASE_DRIVER=mysql
- DATABASE_CONFIG=root@tcp(mysql:3306)/test?parseTime=true
commands:
- go test github.com/laszlocph/drone-oss-08/store/datastore
- go test github.com/laszlocph/woodpecker/store/datastore

build:
image: golang:1.12.4
Expand All @@ -41,7 +41,7 @@ pipeline:

publish_server_alpine:
image: plugins/docker
repo: laszlocloud/drone-oss-08-server
repo: laszlocloud/woodpecker-server
dockerfile: Dockerfile.alpine
secrets: [ docker_username, docker_password ]
tag: [ alpine ]
Expand All @@ -51,7 +51,7 @@ pipeline:

publish_server:
image: plugins/docker
repo: laszlocloud/drone-oss-08-server
repo: laszlocloud/woodpecker-server
secrets: [ docker_username, docker_password ]
tag: [ latest ]
when:
Expand All @@ -60,7 +60,7 @@ pipeline:

publish_agent:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent
secrets: [ docker_username, docker_password ]
tag: [ latest ]
Expand All @@ -70,7 +70,7 @@ pipeline:

publish_agent_alpine:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent.alpine
secrets: [ docker_username, docker_password ]
tag: [ alpine ]
Expand All @@ -80,7 +80,7 @@ pipeline:

publish_agent_arm:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent.linux.arm
secrets: [ docker_username, docker_password ]
tag: [ linux-arm ]
Expand All @@ -90,7 +90,7 @@ pipeline:

publish_agent_arm64:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent.linux.arm64
secrets: [ docker_username, docker_password ]
tag: [ linux-arm64 ]
Expand All @@ -100,7 +100,7 @@ pipeline:

publish_agent_amd64:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent
secrets: [ docker_username, docker_password ]
tag: [ latest ]
Expand All @@ -110,7 +110,7 @@ pipeline:

release_server_alpine:
image: plugins/docker
repo: laszlocloud/drone-oss-08-server
repo: laszlocloud/woodpecker-server
dockerfile: Dockerfile.alpine
secrets: [ docker_username, docker_password ]
tag: "${DRONE_TAG}-alpine"
Expand All @@ -119,7 +119,7 @@ pipeline:

release_agent_alpine:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent.alpine
secrets: [ docker_username, docker_password ]
tag: "${DRONE_TAG}-alpine"
Expand All @@ -128,15 +128,15 @@ pipeline:

release_server:
image: plugins/docker
repo: laszlocloud/drone-oss-08-server
repo: laszlocloud/woodpecker-server
secrets: [ docker_username, docker_password ]
tag: ${DRONE_TAG}
when:
event: tag

release_agent:
image: plugins/docker
repo: laszlocloud/drone-oss-08-agent
repo: laszlocloud/woodpecker-agent
dockerfile: Dockerfile.agent
secrets: [ docker_username, docker_password ]
tag: ${DRONE_TAG}
Expand Down
4 changes: 2 additions & 2 deletions BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

3. Install binaries to $GOPATH/bin

go install github.com/laszlocph/drone-oss-08/cmd/drone-agent
go install github.com/laszlocph/drone-oss-08/cmd/drone-server
go install github.com/laszlocph/woodpecker/cmd/drone-agent
go install github.com/laszlocph/woodpecker/cmd/drone-server

---

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Drone-OSS-08 is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.
Woodpecker is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.

Files under the `docs/` folder is licensed under Creative Commons Attribution-ShareAlike 4.0 International Public License. It is a derivative work of the https://github.com/drone/docs git repository.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ An opinionated fork of the Drone CI system.
- Based on the v0.8 code tree
- Focused on developer experience.

[![Build Status](https://cloud.drone.io/api/badges/laszlocph/drone-oss-08/status.svg)](https://cloud.drone.io/laszlocph/drone-oss-08) [![Go Report Card](https://goreportcard.com/badge/github.com/laszlocph/drone-oss-08)](https://goreportcard.com/report/github.com/laszlocph/drone-oss-08) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Build Status](https://cloud.drone.io/api/badges/laszlocph/woodpecker/status.svg)](https://cloud.drone.io/laszlocph/woodpecker) [![Go Report Card](https://goreportcard.com/badge/github.com/laszlocph/woodpecker)](https://goreportcard.com/report/github.com/laszlocph/woodpecker) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

![Drone-OSS-08](docs/drone.png)
![woodpecker](docs/drone.png)

## Table of contents

Expand Down Expand Up @@ -315,12 +315,12 @@ See the [proxy guide](docs/administration/proxy.md) if you want to see a setup b

## Contributing

Drone-OSS-08 is Apache 2.0 licensed and accepts contributions via GitHub pull requests.
woodpecker is Apache 2.0 licensed and accepts contributions via GitHub pull requests.

[How to build the project]()

## License

Drone-OSS-08 is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.
woodpecker is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.

Files under the `docs/` folder is licensed under Creative Commons Attribution-ShareAlike 4.0 International Public License. It is a derivative work of the https://github.com/drone/docs git repository.
2 changes: 1 addition & 1 deletion cli/drone/build/build_approve.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_decline.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"text/template"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_kill.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_last.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"text/template"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"text/template"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"text/template"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"text/template"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
2 changes: 1 addition & 1 deletion cli/drone/build/build_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
4 changes: 2 additions & 2 deletions cli/drone/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/drone-oss-08/drone-go/drone"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/laszlocph/woodpecker/drone-go/drone"

"github.com/urfave/cli"
)
Expand Down
18 changes: 9 additions & 9 deletions cli/drone/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (
"strings"
"time"

"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/backend"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/backend/docker"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/frontend"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/frontend/yaml"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/frontend/yaml/compiler"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/frontend/yaml/linter"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/interrupt"
"github.com/laszlocph/drone-oss-08/cncd/pipeline/pipeline/multipart"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/backend"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/backend/docker"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend/yaml"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend/yaml/compiler"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend/yaml/linter"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/interrupt"
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/multipart"
"github.com/drone/envsubst"

"github.com/urfave/cli"
Expand Down
2 changes: 1 addition & 1 deletion cli/drone/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/urfave/cli"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
)

// Command exports the info command.
Expand Down
2 changes: 1 addition & 1 deletion cli/drone/internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"golang.org/x/net/proxy"
"golang.org/x/oauth2"

"github.com/laszlocph/drone-oss-08/drone-go/drone"
"github.com/laszlocph/woodpecker/drone-go/drone"
)

// NewClient returns a new client from the CLI context.
Expand Down
2 changes: 1 addition & 1 deletion cli/drone/log/log_purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/urfave/cli"
)

Expand Down
18 changes: 9 additions & 9 deletions cli/drone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import (
"fmt"
"os"

"github.com/laszlocph/drone-oss-08/cli/drone/build"
"github.com/laszlocph/drone-oss-08/cli/drone/deploy"
"github.com/laszlocph/drone-oss-08/cli/drone/exec"
"github.com/laszlocph/drone-oss-08/cli/drone/info"
"github.com/laszlocph/drone-oss-08/cli/drone/log"
"github.com/laszlocph/drone-oss-08/cli/drone/registry"
"github.com/laszlocph/drone-oss-08/cli/drone/repo"
"github.com/laszlocph/drone-oss-08/cli/drone/secret"
"github.com/laszlocph/drone-oss-08/cli/drone/user"
"github.com/laszlocph/woodpecker/cli/drone/build"
"github.com/laszlocph/woodpecker/cli/drone/deploy"
"github.com/laszlocph/woodpecker/cli/drone/exec"
"github.com/laszlocph/woodpecker/cli/drone/info"
"github.com/laszlocph/woodpecker/cli/drone/log"
"github.com/laszlocph/woodpecker/cli/drone/registry"
"github.com/laszlocph/woodpecker/cli/drone/repo"
"github.com/laszlocph/woodpecker/cli/drone/secret"
"github.com/laszlocph/woodpecker/cli/drone/user"

_ "github.com/joho/godotenv/autoload"
"github.com/urfave/cli"
Expand Down
4 changes: 2 additions & 2 deletions cli/drone/registry/registry_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"io/ioutil"
"strings"

"github.com/laszlocph/drone-oss-08/cli/drone/internal"
"github.com/laszlocph/drone-oss-08/drone-go/drone"
"github.com/laszlocph/woodpecker/cli/drone/internal"
"github.com/laszlocph/woodpecker/drone-go/drone"

"github.com/urfave/cli"
)
Expand Down
Loading

0 comments on commit 630c383

Please sign in to comment.