mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
67954b95aa
Since packr have been deprecated in favor of go:embed for quite some time now I have replaced it with plain go:embed functionality which makes it more future proof. The only downside is that go:embed can use relativ paths only, that's why I have moved the web/dist folder into api/public. Besides that I have refactored the static asset handling which includes basic last modification and cache control headers to improve the cache cache behavior for static assets.
10 lines
201 B
YAML
10 lines
201 B
YAML
version: '2'
|
|
tasks:
|
|
compile:be:
|
|
cmds:
|
|
- go run util/version_gen/generator.go 1
|
|
build:local:
|
|
dir: cli
|
|
cmds:
|
|
- go build -o ../bin/semaphore{{ if eq OS "windows" }}.exe{{ end }}
|