Skip to content

Commit

Permalink
repository housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed May 6, 2019
1 parent 8041bf7 commit 75c1177
Show file tree
Hide file tree
Showing 13 changed files with 205 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea
.dist

# Binaries for programs and plugins
*.exe
*.exe~
Expand Down
79 changes: 61 additions & 18 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Changelog

8041bf7 init
46520fa Initial commit
119 changes: 119 additions & 0 deletions dist/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
project_name: echo
release:
github:
owner: apk8s
name: echo
prerelease: "false"
name_template: '{{.ProjectName}}-v{{.Version}} {{.Env.USER}}'
brew:
name: echo
commit_author:
name: goreleaserbot
email: [email protected]
scoop:
name: echo
commit_author:
name: goreleaserbot
email: [email protected]
url_template: https://github.com/apk8s/echo/releases/download/{{ .Tag }}/{{ .ArtifactName
}}
builds:
- goos:
- linux
goarch:
- amd64
- arm
goarm:
- "6"
targets:
- linux_amd64
- linux_arm_6
main: ./cmd/echo.go
ldflags:
- -s -w -X main.Version={{.Version}}
binary: echo
env:
- GO111MODULE=on
- GOPROXY=https://gocenter.io
- CGO_ENABLED=0
lang: go
archive:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
format: tar.gz
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
nfpm:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
bindir: /usr/local/bin
snapcraft:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
snapshot:
name_template: SNAPSHOT-{{ .ShortCommit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
dockers:
- binaries:
- echo
goos: linux
goarch: amd64
dockerfile: Dockerfile
image_templates:
- apk8s/echo:latest
- apk8s/echo:{{ .Tag }}
- apk8s/echo:amd64-{{ .Tag }}
build_flag_templates:
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{.Version}}
- --label=org.label-schema.name={{.ProjectName}}
- binaries:
- echo
goos: linux
goarch: arm
goarm: "6"
dockerfile: Dockerfile
image_templates:
- apk8s/echo:armv6-latest
- apk8s/echo:armv6-{{ .Tag }}
build_flag_templates:
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{.Version}}
- --label=org.label-schema.name={{.ProjectName}}
dist: dist
sign:
cmd: gpg
args:
- --output
- $signature
- --detach-sig
- $artifact
signature: ${artifact}.sig
artifacts: none
env_files:
github_token: ~/.config/goreleaser/github_token
build:
goos:
- linux
goarch:
- amd64
- arm
main: ./cmd/echo.go
ldflags:
- -s -w -X main.Version={{.Version}}
binary: echo
env:
- GO111MODULE=on
- GOPROXY=https://gocenter.io
- CGO_ENABLED=0
github_urls:
download: https://github.com
2 changes: 2 additions & 0 deletions dist/echo_0.0.1_checksums.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
876b0eb96744bc3a12ea2106d9236a139017be4f76875ac2651d9a5f9713c406 echo_0.0.1_linux_amd64.tar.gz
a57584a74966acca7aceee1aad9d21a0c90cac7e5679c02b64d4ee9331c12d96 echo_0.0.1_linux_armv6.tar.gz
Binary file added dist/echo_0.0.1_linux_amd64.tar.gz
Binary file not shown.
Binary file added dist/echo_0.0.1_linux_armv6.tar.gz
Binary file not shown.
8 changes: 8 additions & 0 deletions dist/goreleaserdocker971706632/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM scratch
ENV PATH=/bin

COPY echo /bin/

WORKDIR /

ENTRYPOINT ["/bin/echo"]
Binary file added dist/goreleaserdocker971706632/echo
Binary file not shown.
8 changes: 8 additions & 0 deletions dist/goreleaserdocker980935879/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM scratch
ENV PATH=/bin

COPY echo /bin/

WORKDIR /

ENTRYPOINT ["/bin/echo"]
Binary file added dist/goreleaserdocker980935879/echo
Binary file not shown.
Binary file added dist/linux_amd64/echo
Binary file not shown.
Binary file added dist/linux_arm_6/echo
Binary file not shown.

0 comments on commit 75c1177

Please sign in to comment.