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

Improve release workflow #257

Closed
wants to merge 90 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
c414edf
feat: improve release workflow
anbraten Jul 23, 2021
c6ad425
feat: use golang instead of drone/ca-certs image
anbraten Jul 24, 2021
42ecc0a
feat: improve and correct release config
anbraten Jul 24, 2021
c34ace4
fix: release correct cli
anbraten Jul 24, 2021
ee8fe2f
fix: enable cgo for woodpecker-server
anbraten Jul 24, 2021
44feaae
Update .woodpecker/.release.yml
anbraten Aug 1, 2021
67762e2
reactor: use tagged goreleaser image
anbraten Aug 1, 2021
7754133
refactor: bump alpine, add some docs
anbraten Aug 19, 2021
898e0d1
update makefile
anbraten Aug 19, 2021
e5d1e8e
release on push to master as well
anbraten Aug 20, 2021
3698c5d
deactivate branch master for testing
anbraten Aug 20, 2021
424342e
speed up test ci for testing xD
anbraten Aug 20, 2021
fce434e
fix depends on
anbraten Aug 20, 2021
db89fb3
fix cmd
anbraten Aug 20, 2021
fb35ffc
release snapshot for master
anbraten Aug 20, 2021
6b18df5
fix load tags
anbraten Aug 20, 2021
3dbaec9
try latest git plugin
anbraten Aug 20, 2021
e968268
disable test
anbraten Aug 20, 2021
1370c0e
disable test
anbraten Aug 20, 2021
5d2367f
disable tests
anbraten Aug 20, 2021
4bad7a3
git debug
anbraten Aug 20, 2021
e824645
rename job
anbraten Aug 20, 2021
ee1b0dc
Merge branch 'release'
anbraten Aug 20, 2021
70609fc
on master only
anbraten Aug 20, 2021
a69b4fe
add docker socket
anbraten Aug 20, 2021
9145cd7
trigger ci
anbraten Aug 20, 2021
c661a24
fix volumes
anbraten Aug 20, 2021
4dbd35e
trigger ci2
anbraten Aug 20, 2021
d012abe
trigger ci3
anbraten Aug 20, 2021
873d2a9
release next version
anbraten Aug 20, 2021
9830fc2
fixes
anbraten Aug 22, 2021
4934d17
feat: improve release workflow
anbraten Aug 23, 2021
5c9fe72
fix: use node image
anbraten Aug 23, 2021
4a4105f
fix: add git
anbraten Aug 23, 2021
d58fe8e
feat: improve release workflow
anbraten Aug 24, 2021
a96f439
fix: use correct version
anbraten Aug 24, 2021
fdf8048
thing
anbraten Aug 24, 2021
4320a70
feat: trigger ci
anbraten Aug 24, 2021
06f1bf1
fix: indent when correctly
anbraten Aug 24, 2021
f59f31e
fix: test entrypoint
anbraten Aug 24, 2021
d7fcb9e
fix: correct build
anbraten Aug 24, 2021
7ee0c61
fix: use proper shell
anbraten Aug 24, 2021
c27072a
fix: improve docker build
anbraten Aug 26, 2021
41333ec
fix: escape vars
anbraten Aug 26, 2021
9c872d7
fix: un-escape vars
anbraten Aug 26, 2021
ad4fa87
fix: move comment
anbraten Aug 26, 2021
bb34475
fix: test version check
anbraten Aug 26, 2021
1bae904
ci: remove labels of release files
anbraten Aug 26, 2021
a2d0e62
cI: skip release if not update
anbraten Aug 26, 2021
92a1cbe
feat: skip last check if not needed
anbraten Aug 26, 2021
56205fa
feat: improve release flow
anbraten Aug 27, 2021
2d238d6
feat: use improved kaniko image
anbraten Aug 27, 2021
573aae4
fix: correct ci syntax
anbraten Aug 27, 2021
2d7e43c
fix: correct release test commands
anbraten Aug 28, 2021
a8073f0
fix: correct kaniko image
anbraten Aug 28, 2021
9090253
fix: make script exectuable
anbraten Aug 28, 2021
7e26731
fix: correct build-script
anbraten Aug 28, 2021
704d904
feat: trigger ci
anbraten Aug 28, 2021
8e4c1c5
fix: correct var
anbraten Aug 28, 2021
f347f7c
fix: exit script directly after error
anbraten Aug 28, 2021
ba653b5
Merge branch 'woodpecker-ci:master' into release
anbraten Aug 28, 2021
43d0a61
feat: run ci on master only
anbraten Aug 28, 2021
09c4620
Merge branch 'release' of github.com:anbraten/woodpecker into release
anbraten Aug 28, 2021
08ef704
Merge branch 'master' into release
6543 Aug 29, 2021
484a2bb
Merge remote-tracking branch 'upstream/master' into release
anbraten Aug 30, 2021
f75957e
improve release flow
anbraten Aug 31, 2021
dd4fc68
Merge branch 'woodpecker-ci:master' into release
anbraten Aug 31, 2021
5393575
add helm release
anbraten Aug 31, 2021
5bf4178
fix helm release
anbraten Aug 31, 2021
e291e03
Merge branch 'release' of github.com:anbraten/woodpecker into release
anbraten Aug 31, 2021
d24d8d9
remove unused ci file
anbraten Aug 31, 2021
6a45f55
update
anbraten Sep 1, 2021
a6ef381
cleanup changes
anbraten Sep 1, 2021
e4ff4f7
Merge branch 'master' into release
anbraten Sep 10, 2021
aca9497
Merge remote-tracking branch 'upstream/master' into release
anbraten Sep 11, 2021
0c5ea22
remove helm changes
anbraten Sep 11, 2021
4fc8557
Merge branch 'master' into release
anbraten Sep 19, 2021
14ce161
Merge remote-tracking branch 'upstream/master' into release
anbraten Sep 21, 2021
c678356
Merge remote-tracking branch 'upstream/master' into release
anbraten Sep 23, 2021
8d52ec9
undo change
anbraten Sep 23, 2021
875e9b5
Merge branch 'master' into release
anbraten Sep 24, 2021
fc3cfb3
Merge remote-tracking branch 'upstream/master' into release
anbraten Sep 28, 2021
2bacde5
Merge remote-tracking branch 'origin/master' into release
anbraten Oct 4, 2021
86edcdb
Merge remote-tracking branch 'upstream/master' into release
anbraten Oct 4, 2021
aea8805
remove old command
anbraten Oct 4, 2021
fe2fb1f
merge flows
anbraten Oct 4, 2021
bf99805
Merge remote-tracking branch 'upstream/master' into release
anbraten Oct 4, 2021
9cefae4
remove unrelated changes
anbraten Oct 4, 2021
c45d176
remove more unrelated changes
anbraten Oct 4, 2021
bf8954d
undo unrelated change
anbraten Oct 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*
!release/*
!dist/*
.env

157 changes: 0 additions & 157 deletions .drone.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ server/swagger/files/*.json
server/swagger/swagger_gen.go

docs/venv
dist/
175 changes: 175 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
before:
hooks:
- go mod tidy
- go get github.com/woodpecker-ci/togo
- sh -c "cd web/; go generate ./..."
builds:
- id: server
main: ./cmd/drone-server
binary: woodpecker-server
env:
- CGO_ENABLED=1
goos:
- linux
# - windows
# - darwin
goarch:
- amd64
# - arm
# - arm64
ldflags:
- -s -w
- -X github.com/woodpecker-ci/woodpecker/version.Version={{.Version}}
- -extldflags "-static"
- id: agent
main: ./cmd/drone-agent
binary: woodpecker-agent
env:
- CGO_ENABLED=0
6543 marked this conversation as resolved.
Show resolved Hide resolved
goos:
- linux
# - windows
# - darwin
goarch:
- amd64
# - arm
# - arm64
ldflags:
- -s -w
- -X github.com/woodpecker-ci/woodpecker/version.Version={{.Version}}
- -extldflags "-static"
- id: cli
dir: ./cli/drone
binary: woodpecker-cli
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
# - arm
# - arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -extldflags "-static"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- id: server
package_name: server
builds:
- server
file_name_template: "{{ .ProjectName }}-{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0
formats:
- apk
- deb
- rpm
meta: true
- id: agent
package_name: agent
builds:
- agent
file_name_template: "{{ .ProjectName }}-{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0
formats:
- apk
- deb
- rpm
meta: true
- id: cli
package_name: cli
builds:
- cli
file_name_template: "{{ .ProjectName }}-{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
homepage: https://github.com/woodpecker-ci/woodpecker
license: Apache 2.0
formats:
- apk
- deb
- rpm
meta: true
dockers:
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.server
image_templates:
- "woodpeckerci/woodpecker-server:{{ .Tag }}"
- "woodpeckerci/woodpecker-server:latest"
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.server.alpine
image_templates:
- "woodpeckerci/woodpecker-server:{{ .Tag }}-alpine"
- "woodpeckerci/woodpecker-server:latest-alpine"
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.agent
image_templates:
- "woodpeckerci/woodpecker-agent:{{ .Tag }}"
- "woodpeckerci/woodpecker-agent:latest"
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.agent.alpine
image_templates:
- "woodpeckerci/woodpecker-agent:{{ .Tag }}-alpine"
- "woodpeckerci/woodpecker-agent:latest-alpine"
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.cli
image_templates:
- "woodpeckerci/woodpecker-cli:{{ .Tag }}"
- "woodpeckerci/woodpecker-cli:latest"
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.cli.alpine
image_templates:
- "woodpeckerci/woodpecker-cli:{{ .Tag }}-alpine"
- "woodpeckerci/woodpecker-cli:latest-alpine"
archives:
- id: server
builds:
- server
name_template: "{{ .ProjectName }}-server_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
- id: agent
builds:
- agent
name_template: "{{ .ProjectName }}-agent_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
- id: cli
builds:
- cli
name_template: "{{ .ProjectName }}-cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
15 changes: 15 additions & 0 deletions .woodpecker/.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
clone:
git:
image: plugins/git:next

pipeline:
release:
image: golang:1.10
anbraten marked this conversation as resolved.
Show resolved Hide resolved
secrets: [github_token, docker_username, docker_password]
commands:
curl -sL https://git.io/goreleaser | bash
anbraten marked this conversation as resolved.
Show resolved Hide resolved
when:
event: tag
anbraten marked this conversation as resolved.
Show resolved Hide resolved

depends_on:
- test
Loading