build docker images with goreleaser

This commit is contained in:
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/*
*.db
*.db.lock
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea
.vscode
package-lock.json
yarn.lock
vendor
Dockerfile
filebrowser
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:
env:
- CGO_ENABLED=0
main: cmd/filebrowser/main.go
binary: filebrowser
goos:
@ -39,4 +43,17 @@ archive:
format: zip
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