This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update hofmod-cli, make local changes
- Loading branch information
Showing
17 changed files
with
166 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,97 @@ | ||
build: | ||
project_name: "mvs" | ||
|
||
before: | ||
hooks: | ||
- go mod vendor | ||
|
||
builds: | ||
- binary: "mvs" | ||
main: main.go | ||
binary: mvs | ||
ldflags: -s -w -X github.com/hofstadter-io/mvs/commands.Version={{.Version}} -X github.com/hofstadter-io/mvs/commands.Commit={{.ShortCommit}} -X github.com/hofstadter-io/mvs/commands.BuildDate={{.Date}} | ||
|
||
ldflags: | ||
- -s -w | ||
- -X github.com/hofstadter-io/mvs/commands.Version={{.Version}} | ||
- -X github.com/hofstadter-io/mvs/commands.Commit={{.FullCommit}} | ||
- -X github.com/hofstadter-io/mvs/commands.BuildDate={{.Date}} | ||
- -X github.com/hofstadter-io/mvs/commands.GoVersion=go1.14 | ||
- -X github.com/hofstadter-io/mvs/commands.BuildOS={{.Os}} | ||
- -X github.com/hofstadter-io/mvs/commands.BuildArch={{.Arch}} | ||
- -X github.com/hofstadter-io/mvs/commands.BuildArm={{.Arm}} | ||
|
||
env: | ||
- CGO_ENABLED=0 | ||
- CGO_ENABLED=0 | ||
|
||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
- arm | ||
|
||
archive: | ||
format: tar.gz | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}" | ||
ignore: | ||
- goos: linux | ||
goarch: arm | ||
|
||
|
||
snapshot: | ||
name_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}" | ||
|
||
archives: | ||
- format: binary | ||
replacements: | ||
amd64: 64bit | ||
arm: ARM | ||
arm64: ARM64 | ||
darwin: MacOS | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
amd64: x86_64 | ||
# Needed hack for binary only uploads | ||
# For more information, check #602 | ||
files: | ||
- README.md | ||
- LICENSE | ||
- "thisfiledoesnotexist*" | ||
|
||
|
||
checksum: | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
|
||
brew: | ||
name: mvs | ||
github: | ||
owner: hofstadter-io | ||
name: homebrew-tap | ||
folder: Formula | ||
commit_author: | ||
name: verdverm | ||
email: tony@hofstadter.io | ||
homepage: https://github.com/hofstadter-io/mvs | ||
description: 'MVS is a polyglot dependency management tool based on go mods' | ||
|
||
release: | ||
disable: true | ||
draft: true | ||
github: | ||
owner: hofstadter-io | ||
name: hof | ||
|
||
dockers: | ||
- binaries: | ||
- mvs | ||
skip_push: true | ||
dockerfile: ci/docker/Dockerfile.jessie | ||
image_templates: | ||
- "hofstadter/{{.ProjectName}}:{{.Tag}}" | ||
- "hofstadter/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }}" | ||
- "hofstadter/{{.ProjectName}}:v{{ .Major }}" | ||
- "hofstadter/{{.ProjectName}}:latest" | ||
|
||
- "hofstadter/{{.ProjectName}}:{{.Tag}}-debian" | ||
- "hofstadter/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }}-debian" | ||
- "hofstadter/{{.ProjectName}}:v{{ .Major }}-debian" | ||
- "hofstadter/{{.ProjectName}}:latest-debian" | ||
|
||
|
||
- binaries: | ||
- mvs | ||
skip_push: true | ||
dockerfile: ci/docker/Dockerfile.scratch | ||
image_templates: | ||
- "hofstadter/{{.ProjectName}}:{{.Tag}}-scratch" | ||
- "hofstadter/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }}-scratch" | ||
- "hofstadter/{{.ProjectName}}:v{{ .Major }}-scratch" | ||
- "hofstadter/{{.ProjectName}}:latest-scratch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM debian:jessie | ||
MAINTAINER Hofstadter, Inc <open-source@hofstadter.io> | ||
|
||
COPY mvs /usr/bin/local | ||
ENTRYPOINT ["mvs"] | ||
|
||
VOLUME ["/work"] | ||
WORKDIR /work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM scratch | ||
MAINTAINER Hofstadter, Inc <open-source@hofstadter.io> | ||
|
||
COPY mvs / | ||
ENTRYPOINT ["/mvs"] | ||
|
||
VOLUME ["/work"] | ||
WORKDIR /work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"os" | ||
|
||
"github.com/spf13/cobra" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"os" | ||
|
||
"github.com/spf13/cobra" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package commands | ||
|
||
import ( | ||
|
||
// hello... something might need to go here | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters