Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
update: support arm64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelife1314 committed Sep 16, 2019
1 parent 8200c3d commit b3e9dfa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ builds:
- windows
goarch:
- amd64
- arm64

archives:
-
Expand Down Expand Up @@ -67,6 +68,27 @@ dockers:
- "--label=repository=https://github.com/bigfile/bigfile"
- "--label=homepage=http://bigfile.site"
- "--label=maintainer=bigfilefu <[email protected]>"
- goos: linux
goarch: arm64
image_templates:
- "bigfile/bigfile:latest-arm64"
- "bigfile/bigfile:{{ .Tag }}-arm64"
- "bigfile/bigfile:v{{ .Major }}-arm64"
skip_push: false
dockerfile: Dockerfile-arm64
binaries:
- bigfile
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--label=com.github.actions.name={{.ProjectName}}"
- "--label=com.github.actions.description=a file transfer system that supports http, rpc and ftp protocols"
- "--label=com.github.actions.icon=terminal"
- "--label=com.github.actions.color=blue"
- "--label=repository=https://github.com/bigfile/bigfile"
- "--label=homepage=http://bigfile.site"
- "--label=maintainer=bigfilefu <[email protected]>"
brews:
-
ids:
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile-arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM arm64v8/ubuntu

COPY bigfile /bigfile/

WORKDIR /bigfile

ENTRYPOINT ["/bigfile/bigfile"]
2 changes: 1 addition & 1 deletion artisan/bigfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
var (
app = cli.App{
Name: "bigfile",
Version: "1.0.4",
Version: "1.0.5",
Compiled: time.Now(),
Authors: []*cli.Author{
{
Expand Down

0 comments on commit b3e9dfa

Please sign in to comment.