Skip to content

Commit

Permalink
update goreleaser develop
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Jan 22, 2024
1 parent 011d042 commit 26b0489
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 141 deletions.
102 changes: 0 additions & 102 deletions .goreleaser-template.yaml

This file was deleted.

44 changes: 11 additions & 33 deletions .goreleaser.develop.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,41 @@
## goreleaser <1.14.0
# For building binaries locally
project_name: chainlink

env:
- ZIG_EXEC={{ if index .Env "ZIG_EXEC" }}{{ .Env.ZIG_EXEC }}{{ else }}zig{{ end }}
- IMAGE_PREFIX={{ if index .Env "IMAGE_PREFIX" }}{{ .Env.IMAGE_PREFIX }}{{ else }}localhost:5001{{ end }}
- IMAGE_LABEL_DESCRIPTION="node of the decentralized oracle network, bridging on and off-chain computation"
- IMAGE_LABEL_LICENSES="MIT"
- IMAGE_LABEL_SOURCE="https://github.com/smartcontractkit/{{ .ProjectName }}"

before:
hooks:
- ./tools/bin/goreleaser_utils before_hook

# See https://goreleaser.com/customization/build/
builds:
- binary: chainlink
id: linux-arm64
- id: linux-arm64
binary: "{{ .ProjectName }}"
goos:
- linux
goarch:
- arm64
hooks:
post: ./tools/bin/goreleaser_utils build_post_hook {{ dir .Path }} {{ .Os }} {{ .Arch }}
env:
- CGO_ENABLED=1
- CC=$ZIG_EXEC cc -target aarch64-linux-gnu
- CCX=$ZIG_EXEC c++ -target aarch64-linux-gnu
- CC=zig cc -target aarch64-linux-gnu
- CCX=zig c++ -target aarch64-linux-gnu
flags:
- -trimpath
- -buildmode=pie
ldflags:
- -s -w -r=$ORIGIN/libs
- -X github.com/smartcontractkit/chainlink/v2/core/static.Version={{ .Env.CHAINLINK_VERSION }}
- -X github.com/smartcontractkit/chainlink/v2/core/static.Sha={{ .FullCommit }}
- binary: chainlink
id: linux-amd64

- id: linux-amd64
binary: "{{ .ProjectName }}"
goos:
- linux
goarch:
- amd64
hooks:
post: ./tools/bin/goreleaser_utils build_post_hook {{ dir .Path }} {{ .Os }} {{ .Arch }}
env:
- CGO_ENABLED=1
- CC=$ZIG_EXEC cc -target x86_64-linux-gnu
- CCX=$ZIG_EXEC c++ -target x86_64-linux-gnu
- CC=zig cc -target x86_64-linux-gnu
- CCX=zig c++ -target x86_64-linux-gnu
flags:
- -trimpath
- -buildmode=pie
ldflags:
- -s -w -r=$ORIGIN/libs
- -X github.com/smartcontractkit/chainlink/v2/core/static.Version={{ .Env.CHAINLINK_VERSION }}
- -X github.com/smartcontractkit/chainlink/v2/core/static.Sha={{ .FullCommit }}

# See https://goreleaser.com/customization/docker/
dockers:
Expand Down Expand Up @@ -122,6 +106,7 @@ dockers:
image_templates:
- "{{ .Env.IMAGE_PREFIX }}/{{ .ProjectName }}-develop:develop-amd64"
- "{{ .Env.IMAGE_PREFIX }}/{{ .ProjectName }}-develop:sha-{{ .ShortCommit }}-amd64"

- id: linux-arm64
dockerfile: core/chainlink.goreleaser.Dockerfile
use: buildx
Expand Down Expand Up @@ -170,13 +155,6 @@ docker_signs:
- artifacts: all
stdin: "{{ .Env.COSIGN_PASSWORD }}"

archives:
- rlcp: true
files:
- src: tmp/{{ .Os }}_{{ .Arch }}/libs/*
dst: libs
strip_parent: true

checksum:
name_template: "checksums.txt"

Expand Down
6 changes: 0 additions & 6 deletions core/.goreleaser.yaml

This file was deleted.

0 comments on commit 26b0489

Please sign in to comment.