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

Update #1

Open
wants to merge 144 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
a930403
Fix typo
Sep 29, 2017
9673412
Fix typo of gogs pull request synchronized action
ptek Oct 12, 2017
f660da3
Merge pull request #2240 from ptek/master
bradrydzewski Oct 12, 2017
c23b1fc
Merge pull request #2234 from wyw/readme [ci skip]
bradrydzewski Oct 12, 2017
517c003
Urgent fix for changed auth behavior on Gitea
tboerger Oct 12, 2017
578e884
Merge pull request #2241 from tboerger/fix-gitea
bradrydzewski Oct 13, 2017
7c1b1c6
fix wrong filter variable.
appleboy Oct 17, 2017
8ad98fa
add missing filter expr content.
appleboy Oct 17, 2017
0c972d8
Create BUILDING [CI SKIP]
bradrydzewski Oct 21, 2017
2a2ff05
fix missing commit sha and wrong tag link.
appleboy Nov 4, 2017
837ed7b
Add testing.
appleboy Nov 4, 2017
8eacbe3
Merge pull request #2256 from appleboy/gitea-tag
bradrydzewski Nov 15, 2017
238e916
Redirect HTTP to HTTPS when SSL is enabled.
betterengineering Nov 14, 2017
8476c90
Set the redirect handler for lets encrypt.
betterengineering Nov 16, 2017
b891e14
Merge pull request #2263 from lodge93/bugfix/redirect-http-to-https-w…
bradrydzewski Nov 16, 2017
956418c
add sysctls to yaml
bradrydzewski Nov 17, 2017
6397395
Use 5s backoff with 1m timeout fetching .drone.yml
bradrydzewski Nov 28, 2017
b6a9645
fix(drone-server): missing default branch name in metadata.
appleboy Dec 1, 2017
970080e
use a backoff when fetching the yaml
bradrydzewski Dec 1, 2017
cf30898
enable instance in when clause
bradrydzewski Dec 1, 2017
8ff7cdc
bump minor version
bradrydzewski Dec 3, 2017
3daf679
Merge pull request #2275 from bradrydzewski/master [ci skip]
bradrydzewski Dec 3, 2017
ebe4c34
Fallback yaml patch
gboddin Dec 6, 2017
1db7bde
Merge pull request #2274 from appleboy/bugs
bradrydzewski Dec 6, 2017
453f415
Validate DRONE_HOST to ensure it contains a scheme and not a trailing…
Dec 20, 2017
af273e8
Merge pull request #2286 from jesselang/feature/drone-host-must-inclu…
bradrydzewski Dec 20, 2017
296a4f1
Log the exact error in case of 'error setting commit status'
rumyantseva Dec 20, 2017
b339532
Fix DRONE_HOST check
jesselang Dec 20, 2017
9293d1b
Merge pull request #2288 from jesselang/feature/drone-host-must-inclu…
bradrydzewski Dec 20, 2017
e582c20
Merge pull request #2287 from rumyantseva/master
bradrydzewski Dec 20, 2017
06fa27d
Add keepalive to agents
jmccann Jan 8, 2018
164fd0a
Update keepalive config to use DurationFlag
jmccann Jan 8, 2018
fc22c5b
Merge pull request #2294 from jmccann/keepalive
bradrydzewski Jan 8, 2018
6eb9af0
Allow setting MinTime for keepalive enforcement on server
jmccann Jan 8, 2018
36f99c9
Add explicit default for DRONE_KEEPALIVE_TIMEOUT
jmccann Jan 10, 2018
3454e95
bump version number
bradrydzewski Jan 10, 2018
5ba8cc3
update acme dependency
jhernandezb Jan 13, 2018
32e80ec
lets encrypt: migrate to http-01 challenge
jhernandezb Jan 13, 2018
afc71ec
Merge pull request #2297 from jmccann/keepalive_fix
bradrydzewski Jan 14, 2018
4db23fa
Merge pull request #2301 from jhernandezb/feature/acme-http-01
bradrydzewski Jan 16, 2018
546e0ba
Fix autocert generation
jhernandezb Jan 18, 2018
923de1c
Merge pull request #2307 from jhernandezb/fix/autocert
bradrydzewski Jan 18, 2018
cd0524e
endpoint to purge build logs
bradrydzewski Jan 18, 2018
8771fb5
purged log placeholder to include username
bradrydzewski Jan 18, 2018
1b0122d
Merge pull request #2308 from bradrydzewski/master
bradrydzewski Jan 18, 2018
e15e885
purge log w/ timestamp
tonglil Jan 18, 2018
2700a5e
better format
tonglil Jan 18, 2018
75150d4
Merge pull request #2309 from tonglil/patch-1
bradrydzewski Jan 18, 2018
b892f56
fix missing semicolon in Postgres script's files
Jan 22, 2018
8295166
Update usage for keepalive-min-time
jmccann Jan 24, 2018
e4a77e5
Fix Gitea remote pull-request webhook parsing
Jan 29, 2018
e1a695b
update agent cli usage
tonglil Jan 30, 2018
73914fd
update server cli usage
tonglil Jan 30, 2018
625ef44
make same
tonglil Jan 30, 2018
22522bf
update server usages
tonglil Jan 30, 2018
0a6666b
update server-agent usage
tonglil Jan 30, 2018
84954e2
fix verbage
tonglil Jan 30, 2018
a844ed5
allow repo admin to update build counter
jbrockopp Feb 1, 2018
af08c76
allow repo admin to kill build
jbrockopp Feb 1, 2018
e60b769
Merge pull request #2327 from jbrockopp/build_kill
bradrydzewski Feb 1, 2018
fe593ee
upgrade alpine base images to latest version
MarkusSchoelzel Feb 1, 2018
5722ce4
Merge pull request #2326 from jbrockopp/master
bradrydzewski Feb 1, 2018
af76d46
add page param for getting build list with offset
jbrockopp Feb 2, 2018
c84031e
get page query param. set default of 1 if not set
jbrockopp Feb 2, 2018
e3a5376
uses email from Sender field of push event
favadi Jan 25, 2018
ad2aec8
Merge pull request #2320 from mjwwit/master
bradrydzewski Feb 13, 2018
9651a80
add usage for cpu-set
tonglil Feb 13, 2018
100f44c
Fix typos
yuukiyo Feb 15, 2018
365a305
Merge remote-tracking branch 'upstream/master'
MarkusSchoelzel Feb 16, 2018
ce38558
Update LICENSE
bradrydzewski Feb 16, 2018
c28d1ba
Format LICENSE [ci skip]
bradrydzewski Feb 16, 2018
f5fd78b
Merge pull request #2321 from tonglil/drone-cli-usage
bradrydzewski Feb 19, 2018
0c7c811
Merge pull request #2344 from yuukiyo/fix_typo [ci skip]
bradrydzewski Feb 19, 2018
9a76ab5
Merge pull request #2315 from favadi/gitea-pull-sender
bradrydzewski Feb 19, 2018
909053b
Merge pull request #2244 from appleboy/fix2
bradrydzewski Feb 19, 2018
ce740a6
Merge pull request #2295 from jmccann/keepalive_server
bradrydzewski Feb 19, 2018
cef20f0
Merge pull request #2331 from jbrockopp/master
bradrydzewski Feb 19, 2018
580fe9a
add apache license header to files
bradrydzewski Feb 19, 2018
9e68a09
Merge pull request #2349 from bradrydzewski/master [ci skip]
bradrydzewski Feb 19, 2018
487f6c9
Fix gitea `actionSync`
filoozom Feb 20, 2018
6d61e57
enable periodic tokens
bradrydzewski Feb 21, 2018
29028c1
Merge remote-tracking branch 'origin/master'
bradrydzewski Feb 21, 2018
a12fe49
add secret plugin interface
bradrydzewski Feb 21, 2018
5f5a041
add secret plugin interface
bradrydzewski Feb 21, 2018
5e557bb
add debug logs to vault implementation
bradrydzewski Feb 23, 2018
97da939
Update router.go
techmexdev Mar 1, 2018
51b223f
Merge branch 'feature/fallback_yaml' into gbo
gboddin Mar 3, 2018
9ac3720
Refspec patch
gboddin Mar 3, 2018
e5ad6ec
OSS version
gboddin Mar 3, 2018
2373654
Fixed build
gboddin Mar 3, 2018
6b0f782
Building to gboo's docker repo
gboddin Mar 3, 2018
3aae9dd
Added event and branch in fallback API
gboddin Mar 3, 2018
4221de2
Merge branch 'feature/fallback_yaml' into gbo
gboddin Mar 3, 2018
871feea
Added refspec in the YAML fallback
gboddin Mar 4, 2018
4998644
Merge branch 'feature/fallback_yaml' into gbo
gboddin Mar 4, 2018
a1d1d49
add vault driver_opts support
bradrydzewski Mar 8, 2018
34e7c16
Add context to gitea status
jonasfranz Mar 10, 2018
6a32935
Add context to gitea status
jonasfranz Mar 10, 2018
9671ebe
Merge branch 'master' of https://github.com/JonasFranzDEV/drone
jonasfranz Mar 10, 2018
7f49e69
Just fixed format with go fmt ./...
tboerger Mar 21, 2018
d12ed80
Merge branch 'master' of https://github.com/drone/drone into gbo
gboddin Mar 23, 2018
a85f89a
Merge pull request #2377 from tboerger/format-fix [ci skip]
bradrydzewski Mar 27, 2018
06ff6b5
Use specific token for prometheus metrics
tboerger Mar 21, 2018
d78cadb
Merge pull request #2376 from tboerger/prometheus-token
bradrydzewski Mar 27, 2018
398ca97
Fixed wrong variable name
tboerger Mar 27, 2018
00f72ef
Fix EventStreamSSE Memory Leak
fernandrone Mar 27, 2018
5d72606
Merge pull request #2385 from tboerger/fix-token-name
bradrydzewski Mar 27, 2018
81103a9
bump target version number to 0.8.5
bradrydzewski Mar 29, 2018
897eb95
Merge pull request #2369 from JonasFranzDEV/master
bradrydzewski Mar 30, 2018
c78ce27
Merge pull request #2386 from fbcbarbosa/patch-1
bradrydzewski Mar 30, 2018
d3898a7
update vendored pipeline runner
bradrydzewski Apr 1, 2018
a15ea23
Merge remote-tracking branch 'origin'
bradrydzewski Apr 1, 2018
846db9f
Merge pull request #2328 from YmarkusY/master [ci skip]
bradrydzewski Apr 1, 2018
8a65cf9
Merge pull request #2313 from Valeran86/bugix/postgres-semicolon-in-s…
bradrydzewski Apr 1, 2018
456d72f
Merge pull request #2359 from techmexdev/patch-1 [ci skip]
bradrydzewski Apr 1, 2018
641afd9
Merge pull request #2350 from filoozom/fix-gitea-sync [ci skip]
bradrydzewski Apr 1, 2018
9cd328a
Merge remote-tracking branch 'origin'
bradrydzewski Apr 1, 2018
ea2c72b
Add ability to restart build of any state
delfer Apr 5, 2018
923dcec
Merge pull request #2394 from delfer/patch-1
bradrydzewski Apr 7, 2018
23f215d
Remove labels deserialization for gogs and gitea PRs
Apr 10, 2018
9d8f8c3
Merge pull request #2396 from SkySymbol/issue_2154_labels
bradrydzewski Apr 10, 2018
778cc0e
Merge tag 'v0.8.5' of https://github.com/drone/drone into gbo
gboddin Apr 23, 2018
79428aa
Enable Vault auth through kubernetes auth method
praxist Apr 24, 2018
c4fe649
fixup: catch err from parseduration
praxist Apr 24, 2018
764c36f
Use user/permissions bitbucket API instead of hooks
folex Apr 27, 2018
0b73e54
Add tests:
folex Apr 27, 2018
db698f9
fixup: some comments, added opts test, address pr concerns
praxist Apr 27, 2018
187d1d6
add additional opt to set v.auth
praxist Apr 27, 2018
d6f595e
Merge pull request #2406 from praxist/kubernetes-auth
bradrydzewski Apr 27, 2018
b1dfa4a
Fix PR comments
folex Apr 28, 2018
0f737fd
Fix fmt.ErrorF usage
folex Apr 30, 2018
c01a05d
Merge pull request #2409 from folex/master
bradrydzewski Apr 30, 2018
3df0e94
Merge branch 'master' of https://github.com/drone/drone into gbo
gboddin May 1, 2018
6a651f1
move vault params to extras
bradrydzewski May 2, 2018
9ffd5ad
alternate build count strategy for postgres
bradrydzewski May 2, 2018
4063d29
fix failing build count test
bradrydzewski May 2, 2018
75fbaf9
Fix vault-k8s expected response type
praxist May 2, 2018
29785b8
Merge pull request #2411 from praxist/fix-vault-k8s
bradrydzewski May 3, 2018
20b2637
Documentation fork
gboddin May 21, 2018
60fe572
Merge branch 'master' of https://github.com/drone/drone into gbo
gboddin May 21, 2018
36783e9
Switched latest to master
gboddin May 21, 2018
737a9d7
Update README.md
gboddin May 21, 2018
c481507
Raise version to 0.8.6
tboerger Jul 27, 2018
ffece5d
Merge tag 'v0.8.6' of github.com:drone/drone
gboddin Oct 16, 2018
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
11 changes: 1 addition & 10 deletions .drone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,17 @@
# only execute this script as part of the pipeline.
[ -z "$CI" ] && echo "missing ci environment variable" && exit 2

# only execute the script when github token exists.
[ -z "$SSH_KEY" ] && echo "missing ssh key" && exit 3

# write the ssh key.
mkdir /root/.ssh
echo -n "$SSH_KEY" > /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa

# add github.com to our known hosts.
touch /root/.ssh/known_hosts
chmod 600 /root/.ssh/known_hosts
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null

# clone the extras project.
set -e
set -x
git clone [email protected]:drone/drone-enterprise.git extras

# build a static binary with the build number and extra features.
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/extras/cmd/drone-server
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/cmd/drone-server
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/drone/drone/cmd/drone-agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/drone/drone/cmd/drone-agent
26 changes: 13 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pipeline:

publish_server_alpine:
image: plugins/docker
repo: drone/drone
repo: gboo/drone-server
dockerfile: Dockerfile.alpine
secrets: [ docker_username, docker_password ]
tag: [ alpine ]
Expand All @@ -49,7 +49,7 @@ pipeline:

publish_server:
image: plugins/docker
repo: drone/drone
repo: gboo/drone-server
secrets: [ docker_username, docker_password ]
tag: [ latest ]
when:
Expand All @@ -58,7 +58,7 @@ pipeline:

publish_agent_alpine:
image: plugins/docker
repo: drone/agent
repo: gboo/drone-agent
dockerfile: Dockerfile.agent.alpine
secrets: [ docker_username, docker_password ]
tag: [ alpine ]
Expand All @@ -68,7 +68,7 @@ pipeline:

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

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

publish_agent_amd64:
image: plugins/docker
repo: drone/agent
repo: gboo/drone-agent
dockerfile: Dockerfile.agent
secrets: [ docker_username, docker_password ]
tag: [ latest ]
Expand All @@ -98,16 +98,16 @@ pipeline:

release_server_alpine:
image: plugins/docker
repo: drone/drone
repo: gboo/drone-server
dockerfile: Dockerfile.alpine
secrets: [ docker_username, docker_password ]
tag: [ 0.8-alpine ]
tag: ${DRONE_TAG}
when:
event: tag

release_agent_alpine:
image: plugins/docker
repo: drone/agent
repo: gboo/drone-agent
dockerfile: Dockerfile.agent.alpine
secrets: [ docker_username, docker_password ]
tag: [ 0.8-alpine ]
Expand All @@ -116,18 +116,18 @@ pipeline:

release_server:
image: plugins/docker
repo: drone/drone
repo: gboo/drone-server
secrets: [ docker_username, docker_password ]
tag: [ 0.8, 0.8.2 ]
tag: [ 0.8, 0.8.6 ]
when:
event: tag

release_agent:
image: plugins/docker
repo: drone/agent
repo: gboo/drone-agent
dockerfile: Dockerfile.agent
secrets: [ docker_username, docker_password ]
tag: [ 0.8, 0.8.2 ]
tag: [ 0.8, 0.8.6 ]
when:
event: tag

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ extras/
release/

server/swagger/files/*.json
.idea/
13 changes: 13 additions & 0 deletions BUILDING
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
1. Install go 1.9 or later
2. Install dependencies

go get -u github.com/drone/drone-ui/dist
go get -u golang.org/x/net/context
go get -u golang.org/x/net/context/ctxhttp
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go

3. Install binaries to $GOPATH/bin

go install github.com/drone/drone/cmd/drone-agent
go install github.com/drone/drone/cmd/drone-server
2 changes: 1 addition & 1 deletion Dockerfile.agent.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.6
FROM alpine:3.7

RUN apk add -U --no-cache ca-certificates

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.6
FROM alpine:3.7
EXPOSE 8000 9000 80 443

RUN apk add -U --no-cache ca-certificates
Expand Down
Loading