Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
92 additions
and 33 deletions.
- +2 −0 .dockerignore
- +10 −1 .drone.yml
- +1 −1 .drone.yml.sig
- +1 −0 .gitignore
- +3 −14 Dockerfile
- +11 −0 Dockerfile.arm64
- +11 −0 Dockerfile.armhf
- +11 −0 Dockerfile.windows
- +24 −13 Makefile
- +1 −1 model/netrc.go
- +8 −0 store/datastore/init.go
- +9 −0 store/datastore/init_cgo.go
- +0 −3 store/datastore/store.go
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,2 @@ | ||
| * | ||
| !release/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1 +1 @@ | ||
| eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9kcm9uZQogIHBhdGg6IHNyYy9naXRodWIuY29tL2Ryb25lL2Ryb25lCgpwaXBlbGluZToKICB0ZXN0OgogICAgaW1hZ2U6IGRyb25lL2dvbGFuZzoxLjUKICAgIGVudmlyb25tZW50OgogICAgICAtIEdPMTVWRU5ET1JFWFBFUklNRU5UPTEKICAgICAgLSBHT1BBVEg9L2Ryb25lCiAgICBjb21tYW5kczoKICAgICAgLSBleHBvcnQgUEFUSD0kUEFUSDokR09QQVRIL2JpbgogICAgICAtIG1ha2UgZGVwcyBnZW4KICAgICAgLSBtYWtlIHRlc3QgdGVzdF9wb3N0Z3JlcyB0ZXN0X215c3FsCgogIGJ1aWxkOgogICAgaW1hZ2U6IGRyb25lL2dvbGFuZzoxLjUKICAgIGVudmlyb25tZW50OgogICAgICAtIEdPMTVWRU5ET1JFWFBFUklNRU5UPTEKICAgICAgLSBHT1BBVEg9L2Ryb25lCiAgICBjb21tYW5kczoKICAgICAgLSBleHBvcnQgUEFUSD0kUEFUSDokR09QQVRIL2JpbgogICAgICAtIG1ha2UgYnVpbGQKICAgIHdoZW46CiAgICAgIGV2ZW50OiBwdXNoCgogIHB1Ymxpc2g6CiAgICBpbWFnZTogczMKICAgIGJ1Y2tldDogZG93bmxvYWRzLmRyb25lLmlvCiAgICBzb3VyY2U6IHJlbGVhc2UvKiovKi50YXIuZ3oKICAgIHdoZW46CiAgICAgIGV2ZW50OiBwdXNoCiAgICAgIGJyYW5jaDogbWFzdGVyCgogIGRvY2tlcjoKICAgIHJlcG86IGRyb25lL2Ryb25lCiAgICB0YWc6IFsgIjAuNS4wIiwgIjAuNSIgXQogICAgc3RvcmFnZV9kcml2ZXI6IG92ZXJsYXkKICAgIHdoZW46CiAgICAgIGJyYW5jaDogbWFzdGVyCiAgICAgIGV2ZW50OiBwdXNoCgpzZXJ2aWNlczoKICBwb3N0Z3JlczoKICAgIGltYWdlOiBwb3N0Z3Jlczo5LjQuNQogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gUE9TVEdSRVNfVVNFUj1wb3N0Z3JlcwogIG15c3FsOgogICAgaW1hZ2U6IG15c3FsOjUuNi4yNwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gTVlTUUxfREFUQUJBU0U9dGVzdAogICAgICAtIE1ZU1FMX0FMTE9XX0VNUFRZX1BBU1NXT1JEPXllcwo.r5LDjpl57Aj5esstD0OtJ1_kwI0iYp1cX9LAhxLoVaE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -11,6 +11,7 @@ drone/drone | ||
| *.deb | ||
| .env | ||
| temp/ | ||
| release/ | ||
|
|
||
| server/swagger/files/*.json | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,24 +1,13 @@ | ||
| # docker build --rm=true -t drone/drone . | ||
|
|
||
| FROM centurylink/ca-certs | ||
| EXPOSE 8000 | ||
|
|
||
| ENV DATABASE_DRIVER=sqlite3 | ||
| ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite | ||
| ENV GODEBUG=netdns=go | ||
|
|
||
| ADD release/drone /drone | ||
|
|
||
| ENTRYPOINT ["/drone"] | ||
| CMD ["server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,11 @@ | ||
| FROM ?????????? | ||
|
|
||
| EXPOSE 8000 | ||
| ENV DATABASE_DRIVER=sqlite3 | ||
| ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite | ||
| ENV GODEBUG=netdns=go | ||
|
|
||
| ADD release/linux/arm64/drone /drone | ||
|
|
||
| ENTRYPOINT ["/drone"] | ||
| CMD ["server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,11 @@ | ||
| FROM ?????????? | ||
|
|
||
| EXPOSE 8000 | ||
| ENV DATABASE_DRIVER=sqlite3 | ||
| ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite | ||
| ENV GODEBUG=netdns=go | ||
|
|
||
| ADD release/linux/arm/drone /drone | ||
|
|
||
| ENTRYPOINT ["/drone"] | ||
| CMD ["server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,11 @@ | ||
| FROM ?????????? | ||
|
|
||
| EXPOSE 8000 | ||
| ENV DATABASE_DRIVER=sqlite3 | ||
| ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite | ||
| ENV GODEBUG=netdns=go | ||
|
|
||
| ADD release/windows/amd64/drone /drone | ||
|
|
||
| ENTRYPOINT ["/drone"] | ||
| CMD ["server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -3,5 +3,5 @@ package model | ||
| type Netrc struct { | ||
| Machine string `json:"machine"` | ||
| Login string `json:"login"` | ||
| Password string `json:"password"` | ||
| } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,8 @@ | ||
| // +build !cgo | ||
|
|
||
| package datastore | ||
|
|
||
| import ( | ||
| _ "github.com/go-sql-driver/mysql" | ||
| _ "github.com/lib/pq" | ||
| ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,9 @@ | ||
| // +build cgo | ||
|
|
||
| package datastore | ||
|
|
||
| import ( | ||
| _ "github.com/go-sql-driver/mysql" | ||
| _ "github.com/lib/pq" | ||
| _ "github.com/mattn/go-sqlite3" | ||
| ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -7,9 +7,6 @@ import ( | ||
|
|
||
| "github.com/drone/drone/store" | ||
| "github.com/drone/drone/store/datastore/ddl" | ||
| "github.com/rubenv/sql-migrate" | ||
| "github.com/russross/meddler" | ||
|
|
||

