build docker images with goreleaser

pull/492/head
1138-4EB 2018-07-02 02:58:09 +01:00
parent 7459e66b71
commit 6cb2e30143
2 changed files with 26 additions and 7 deletions

14
.gitignore vendored
View File

@ -2,12 +2,14 @@
*/dist/* */dist/*
*.db *.db
*.db.lock *.db.lock
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea .idea
.vscode .vscode
package-lock.json Dockerfile
yarn.lock filebrowser
vendor
rice-box.go rice-box.go
vendor
npm-debug.log*
package-lock.json
yarn-debug.log*
yarn-error.log*
yarn.lock

View File

@ -1,4 +1,8 @@
project_name: filebrowser
build: build:
env:
- CGO_ENABLED=0
main: cmd/filebrowser/main.go main: cmd/filebrowser/main.go
binary: filebrowser binary: filebrowser
goos: goos:
@ -40,3 +44,16 @@ archive:
release: release:
disable: true disable: true
dockers:
-
goos: linux
goarch: amd64
goarm: ''
image: filebrowser/filebrowser
skip_push: true
tag_templates:
- "{{ .Tag }}"
- latest
extra_files:
- Docker.json