Skip to content

Commit 6cb2e30

Browse files
author
1138-4EB
committed
build docker images with goreleaser
1 parent 7459e66 commit 6cb2e30

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
*/dist/*
33
*.db
44
*.db.lock
5-
npm-debug.log*
6-
yarn-debug.log*
7-
yarn-error.log*
85
.idea
96
.vscode
7+
Dockerfile
8+
filebrowser
9+
rice-box.go
10+
vendor
11+
npm-debug.log*
1012
package-lock.json
13+
yarn-debug.log*
14+
yarn-error.log*
1115
yarn.lock
12-
vendor
13-
rice-box.go

.goreleaser.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
project_name: filebrowser
2+
13
build:
4+
env:
5+
- CGO_ENABLED=0
26
main: cmd/filebrowser/main.go
37
binary: filebrowser
48
goos:
@@ -39,4 +43,17 @@ archive:
3943
format: zip
4044

4145
release:
42-
disable: true
46+
disable: true
47+
48+
dockers:
49+
-
50+
goos: linux
51+
goarch: amd64
52+
goarm: ''
53+
image: filebrowser/filebrowser
54+
skip_push: true
55+
tag_templates:
56+
- "{{ .Tag }}"
57+
- latest
58+
extra_files:
59+
- Docker.json

0 commit comments

Comments
 (0)