mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-25 17:42:21 +00:00
Merge branch 'master' into delrepo
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -6,8 +6,9 @@ drone.sublime-workspace
|
|||||||
*~
|
*~
|
||||||
~*
|
~*
|
||||||
*.sqlite
|
*.sqlite
|
||||||
drone.deb
|
*.deb
|
||||||
drone.rpm
|
*.deb.*
|
||||||
|
*.rpm
|
||||||
*.out
|
*.out
|
||||||
*.rice-box.go
|
*.rice-box.go
|
||||||
|
|
||||||
|
1
Makefile
1
Makefile
@@ -69,6 +69,7 @@ deb:
|
|||||||
--vendor "drone.io" -a amd64 \
|
--vendor "drone.io" -a amd64 \
|
||||||
--config-files /etc/drone/drone.toml \
|
--config-files /etc/drone/drone.toml \
|
||||||
packaging/root/=/
|
packaging/root/=/
|
||||||
|
cp packaging/output/drone.deb packaging/output/drone.deb.$(SHA)
|
||||||
|
|
||||||
rpm:
|
rpm:
|
||||||
fpm -s dir -t rpm -n drone -v $(VERSION) -p packaging/output/drone.rpm \
|
fpm -s dir -t rpm -n drone -v $(VERSION) -p packaging/output/drone.rpm \
|
||||||
|
@@ -98,7 +98,5 @@ func (s *Slack) send(msg string, fallback string, color string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
go sendJson(s.WebhookUrl, payload, nil)
|
return sendJson(s.WebhookUrl, payload, nil)
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
@@ -125,13 +125,10 @@ func main() {
|
|||||||
pub = pubsub.NewPubSub()
|
pub = pubsub.NewPubSub()
|
||||||
|
|
||||||
// create handler for static resources
|
// create handler for static resources
|
||||||
assets := rice.MustFindBox("app").HTTPBox()
|
|
||||||
assetserve := http.FileServer(rice.MustFindBox("app").HTTPBox())
|
assetserve := http.FileServer(rice.MustFindBox("app").HTTPBox())
|
||||||
http.Handle("/robots.txt", assetserve)
|
http.Handle("/robots.txt", assetserve)
|
||||||
|
http.Handle("/", assetserve)
|
||||||
http.Handle("/static/", http.StripPrefix("/static", assetserve))
|
http.Handle("/static/", http.StripPrefix("/static", assetserve))
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
||||||
w.Write(assets.MustBytes("index.html"))
|
|
||||||
})
|
|
||||||
|
|
||||||
// create the router and add middleware
|
// create the router and add middleware
|
||||||
mux := router.New()
|
mux := router.New()
|
||||||
|
Reference in New Issue
Block a user