mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
Merge pull request #582 from bradrydzewski/master
updated Makefile to create `packaging/output` during build step
This commit is contained in:
commit
dc4b60a50a
2
Makefile
2
Makefile
@ -20,6 +20,7 @@ test_postgres:
|
||||
TEST_DRIVER="postgres" TEST_DATASOURCE="host=127.0.0.1 user=postgres dbname=postgres sslmode=disable" go test -short github.com/drone/drone/server/datastore/database
|
||||
|
||||
build:
|
||||
mkdir -p packaging/output
|
||||
mkdir -p packaging/root/usr/local/bin
|
||||
go build -o packaging/root/usr/local/bin/drone -ldflags "-X main.revision $(SHA)" github.com/drone/drone/cli
|
||||
go build -o packaging/root/usr/local/bin/droned -ldflags "-X main.revision $(SHA)" github.com/drone/drone/server
|
||||
@ -36,7 +37,6 @@ clean:
|
||||
rm -rf packaging/output
|
||||
rm -f packaging/root/usr/local/bin/drone
|
||||
rm -f packaging/root/usr/local/bin/droned
|
||||
mkdir -p packaging/output
|
||||
|
||||
lessc:
|
||||
lessc --clean-css server/app/styles/drone.less server/app/styles/drone.css
|
||||
|
@ -7,6 +7,7 @@
|
||||
* Docker
|
||||
* AUFS
|
||||
|
||||
|
||||
We highly recommend running Docker with the AUFS storage driver. You can verify Docker is using
|
||||
the AUFS storage driver with the following command `sudo docker info | grep Driver:`
|
||||
|
||||
|
@ -66,7 +66,6 @@ func getUserBearer(c context.Context, r *http.Request) *model.User {
|
||||
return []byte(*secret), nil
|
||||
})
|
||||
if err != nil || !token.Valid {
|
||||
println("invalid token")
|
||||
return nil
|
||||
}
|
||||
var userid, ok = token.Claims["user_id"].(float64)
|
||||
|
Loading…
Reference in New Issue
Block a user