加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.goreleaser.snapshot.yml 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
project_name: lorawan-stack
changelog:
skip: true
release:
disable: true
builds:
- id: stack
main: ./cmd/ttn-lw-stack
binary: ttn-lw-stack
ldflags:
- -s
- -w
- -X go.thethings.network/lorawan-stack/v3/pkg/version.BuildDate={{.Date}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.GitCommit={{.ShortCommit}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.TTN={{ trimprefix .Version "v" }}
env:
- CGO_ENABLED=0
goos: [linux]
goarch: [amd64, arm64]
- id: cli
main: ./cmd/ttn-lw-cli
binary: ttn-lw-cli
ldflags:
- -s
- -w
- -X go.thethings.network/lorawan-stack/v3/pkg/version.BuildDate={{.Date}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.GitCommit={{.ShortCommit}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.TTN={{ trimprefix .Version "v" }}
env:
- CGO_ENABLED=0
goos: [linux]
goarch: [amd64, arm64]
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile
use: buildx
ids:
- cli
- stack
build_flag_templates:
- --platform=linux/amd64
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.vendor=The Things Network Foundation'
- '--label=org.opencontainers.image.title=The Things Stack'
- '--label=org.opencontainers.image.url=https://www.thethingsindustries.com/docs'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
image_templates:
- 'lorawan-stack-dev:{{ .FullCommit }}-amd64'
skip_push: true
extra_files:
- data
- public
- goos: linux
goarch: arm64
dockerfile: Dockerfile
use: buildx
ids:
- cli
- stack
build_flag_templates:
- --platform=linux/arm64
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.vendor=The Things Network Foundation'
- '--label=org.opencontainers.image.title=The Things Stack'
- '--label=org.opencontainers.image.url=https://www.thethingsindustries.com/docs'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
image_templates:
- 'lorawan-stack-dev:{{ .FullCommit }}-arm64'
skip_push: true
extra_files:
- data
- public
signs:
- artifacts: checksum
args:
- '--pinentry-mode=loopback'
- '--no-tty'
- '--passphrase-fd'
- '0'
- '--batch'
- '--output'
- '${signature}'
- '--detach-sign'
- '-u'
- '{{ .Env.SIGN_KEY_NAME }}'
- '${artifact}'
stdin_file: /tmp/gpg_passphrase
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化