Skip to content

Commit

Permalink
update goreleasr files
Browse files Browse the repository at this point in the history
  • Loading branch information
amitz committed Mar 18, 2024
1 parent 5f27d01 commit f358c7f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 51 deletions.
30 changes: 12 additions & 18 deletions cmd/lavad/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

project_name: lavad
before:
hooks:
# You may remove this if you don't use go modules.
Expand All @@ -15,7 +15,6 @@ before:

builds:
- id: lavad
binary: lavad
env:
- CGO_ENABLED=0
goos:
Expand All @@ -25,27 +24,22 @@ builds:
goarch:
- amd64
- arm64

dockers:
- image_templates: ["us-central1-docker.pkg.dev/lavanet/lavad:{{ .Version }}"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/lavanet/lava
- --label=org.opencontainers.image.source=https://github.com/lavanet/lava
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache
- "--build-arg=LAVA_BINARY=lavad"
ignore:
- goos: darwin
goarch: s390x
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
- goos: windows
goarch: arm64

nfpms:
- id: lavad
maintainer: Amit <[email protected]>


archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
Expand Down
29 changes: 12 additions & 17 deletions cmd/lavap/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

project_name: lavap
before:
hooks:
# You may remove this if you don't use go modules.
Expand All @@ -15,7 +15,6 @@ before:

builds:
- id: lavap
binary: lavap
env:
- CGO_ENABLED=0
goos:
Expand All @@ -25,21 +24,17 @@ builds:
goarch:
- amd64
- arm64

dockers:
- image_templates: ["us-central1-docker.pkg.dev/lavanet/lavap:{{ .Version }}"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/lavanet/lava
- --label=org.opencontainers.image.source=https://github.com/lavanet/lava
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache
- "--build-arg=LAVA_BINARY=lavap"
ignore:
- goos: darwin
goarch: s390x
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
- goos: windows
goarch: arm64

nfpms:
- id: lavap
Expand Down
28 changes: 12 additions & 16 deletions cmd/lavavisor/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

project_name: lavavisor
before:
hooks:
# You may remove this if you don't use go modules.
Expand All @@ -15,7 +15,6 @@ before:

builds:
- id: lavavisor
binary: lavavisor
env:
- CGO_ENABLED=0
goos:
Expand All @@ -25,20 +24,17 @@ builds:
goarch:
- amd64
- arm64

dockers:
- image_templates: ["us-central1-docker.pkg.dev/lavanet/lavavisor:{{ .Version }}"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/lavanet/lava
- --label=org.opencontainers.image.source=https://github.com/lavanet/lava
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache
ignore:
- goos: darwin
goarch: s390x
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
- goos: windows
goarch: arm64

nfpms:
- id: lavavisor
Expand Down

0 comments on commit f358c7f

Please sign in to comment.