From fa802d13a11316a9fd9a740ea5a0f41b1b0de92a Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Thu, 19 Dec 2024 12:13:58 +0530 Subject: [PATCH 1/2] chore: update releaser --- Makefile | 20 +- releaser/.goreleaser-arkeo-cross-testnet.yaml | 162 +++++++++++++ ...ross.yaml => .goreleaser-arkeo-cross.yaml} | 72 ++---- releaser/.goreleaser-arkeo-testnet.yaml | 100 ++++++++ ...goreleaser.yaml => .goreleaser-arkeo.yaml} | 20 +- .../.goreleaser-directory-cross-testnet.yaml | 218 ++++++++++++++++++ releaser/.goreleaser-directory-cross.yaml | 60 +---- releaser/.goreleaser-directory-testnet.yaml | 128 ++++++++++ releaser/.goreleaser-directory.yaml | 24 +- .../.goreleaser-sentinel-cross-testnet.yaml | 134 +++++++++++ releaser/.goreleaser-sentinel-cross.yaml | 32 +-- releaser/.goreleaser-sentinel-testnet.yaml | 82 +++++++ releaser/.goreleaser-sentinel.yaml | 15 +- 13 files changed, 874 insertions(+), 193 deletions(-) create mode 100644 releaser/.goreleaser-arkeo-cross-testnet.yaml rename releaser/{.goreleaser-cross.yaml => .goreleaser-arkeo-cross.yaml} (56%) create mode 100644 releaser/.goreleaser-arkeo-testnet.yaml rename releaser/{.goreleaser.yaml => .goreleaser-arkeo.yaml} (75%) create mode 100644 releaser/.goreleaser-directory-cross-testnet.yaml create mode 100644 releaser/.goreleaser-directory-testnet.yaml create mode 100644 releaser/.goreleaser-sentinel-cross-testnet.yaml create mode 100644 releaser/.goreleaser-sentinel-testnet.yaml diff --git a/Makefile b/Makefile index eaa9d905..6eea92f7 100644 --- a/Makefile +++ b/Makefile @@ -327,7 +327,7 @@ release-dry-run-cross: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ - -f releaser/.goreleaser-cross.yaml \ + -f releaser/.goreleaser-arkeo-cross.yaml \ --clean --skip=validate --skip=publish release-dry-run: @@ -342,7 +342,7 @@ release-dry-run: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser:${GORELEASER_VERSION} \ - -f releaser/.goreleaser.yaml \ + -f releaser/.goreleaser-arkeo.yaml \ --clean --skip=validate --skip=publish sentinel-release-dry-run-cross: @@ -427,7 +427,7 @@ release: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser:${GORELEASER_VERSION} \ - -f releaser/.goreleaser.yaml \ + -f releaser/.goreleaser-arkeo.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -444,7 +444,7 @@ release-cross: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ - -f releaser/.goreleaser-cross.yaml \ + -f releaser/.goreleaser-arkeo-cross.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -537,7 +537,7 @@ release-testnet: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser:${GORELEASER_VERSION} \ - -f releaser/.goreleaser.yaml \ + -f releaser/.goreleaser-arkeo-testnet.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -554,7 +554,7 @@ release-testnet-cross: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ - -f releaser/.goreleaser-cross.yaml \ + -f releaser/.goreleaser-arkeo-cross-testnet.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -573,7 +573,7 @@ sentinel-testnet-cross: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ - -f releaser/.goreleaser-sentinel-cross.yaml \ + -f releaser/.goreleaser-sentinel-cross-testnet.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -591,7 +591,7 @@ sentinel-testnet-release: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser:${GORELEASER_VERSION} \ - -f releaser/.goreleaser-sentinel.yaml \ + -f releaser/.goreleaser-sentinel-testnet.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -608,7 +608,7 @@ directory-testnet-cross: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ - -f releaser/.goreleaser-directory-cross.yaml \ + -f releaser/.goreleaser-directory-cross-testnet.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) @@ -625,7 +625,7 @@ directory-testnet: -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser:${GORELEASER_VERSION} \ - -f releaser/.goreleaser-directory.yaml \ + -f releaser/.goreleaser-directory-testnet.yaml \ --clean \ --skip-validate=$(GORELEASER_SKIP_VALIDATE) \ --skip-publish=$(GORELEASER_SKIP_PUBLISH) \ No newline at end of file diff --git a/releaser/.goreleaser-arkeo-cross-testnet.yaml b/releaser/.goreleaser-arkeo-cross-testnet.yaml new file mode 100644 index 00000000..2bddee5d --- /dev/null +++ b/releaser/.goreleaser-arkeo-cross-testnet.yaml @@ -0,0 +1,162 @@ +before: + hooks: + - go mod tidy + +env: + - CGO_ENABLED=1 + +builds: + - id: arkeod-testnet-darwin-amd64 + binary: arkeod-testnet + env: + - CC=o64-clang + - CGO_LDFLAGS=-L/lib + main: ./cmd/arkeod + goos: + - darwin + goarch: + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -w -s + - -linkmode=external + tags: + - 'testnet' + + - id: arkeod-testnet-darwin-arm64 + binary: arkeod-testnet + env: + - CC=o64-clang + - CGO_LDFLAGS=-L/lib + main: ./cmd/arkeod + goos: + - darwin + goarch: + - arm64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -w -s + - -linkmode=external + tags: + - 'testnet' + + - id: arkeod-testnet-linux-arm64 + binary: arkeod-testnet + env: + - CC=aarch64-linux-gnu-gcc + - CXX=aarch64-linux-gnu-g++ + main: ./cmd/arkeod + goos: + - linux + goarch: + - arm64 + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + +universal_binaries: + - id: arkeod-testnet-darwin-universal + ids: + - arkeod-testnet-darwin-amd64 + - arkeod-testnet-darwin-arm64 + replace: false + name_template: >- + {{ .ProjectName }}d-testnet_{{ .Version }}_darwin_universal + +archives: + - id: archive-versioned + builds: + - arkeod-testnet-linux-arm64 + - arkeod-testnet-darwin-amd64 + - arkeod-testnet-darwin-arm64 + - arkeod-testnet-darwin-universal + name_template: >- + {{ .ProjectName }}d-testnet_{{ .Version }}_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: zip + files: + - none* + + - id: archive-binary + builds: + - arkeod-testnet-linux-arm64 + - arkeod-testnet-darwin-amd64 + - arkeod-testnet-darwin-arm64 + - arkeod-testnet-darwin-universal + name_template: >- + {{ .ProjectName }}d-testnet_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: binary + files: + - none* + +checksum: + name_template: >- + {{ .ProjectName }}d-testnet_{{ .Version }}_checksums.txt + +dockers: + - use: buildx + goos: linux + goarch: arm64 + dockerfile: docker/Dockerfile + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:latest-arm64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:{{ .Version }}-arm64' + build_flag_templates: + - "--pull" + - "--platform=linux/arm64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=arkeod-testnet" + - "--label=org.opencontainers.image.description=Arkeo Daemon Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + +docker_manifests: + - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:latest' + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:latest-arm64' + + - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:{{ .Version }}' + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:{{ .Version }}-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:{{ .Version }}-arm64' + +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-cross.yaml b/releaser/.goreleaser-arkeo-cross.yaml similarity index 56% rename from releaser/.goreleaser-cross.yaml rename to releaser/.goreleaser-arkeo-cross.yaml index ffb5a18d..0edb9cb4 100644 --- a/releaser/.goreleaser-cross.yaml +++ b/releaser/.goreleaser-arkeo-cross.yaml @@ -26,13 +26,13 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -w -s - -linkmode=external tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: arkeod-darwin-arm64 binary: arkeod @@ -54,13 +54,13 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -w -s - -linkmode=external tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: arkeod-linux-arm64 binary: arkeod @@ -78,14 +78,14 @@ builds: - -X main.date={{ .CommitDate }} - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' universal_binaries: - id: arkeod-darwin-universal @@ -95,7 +95,6 @@ universal_binaries: replace: false name_template: >- {{ .ProjectName }}d_{{ .Version }}_darwin_universal - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} archives: - id: archive-versioned @@ -106,7 +105,6 @@ archives: - arkeod-darwin-universal name_template: >- {{ .ProjectName }}d_{{ .Version }}_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: zip files: @@ -120,7 +118,6 @@ archives: - arkeod-darwin-universal name_template: >- {{ .ProjectName }}d_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: binary files: @@ -128,9 +125,7 @@ archives: checksum: name_template: >- - {{ .ProjectName }}d_{{ .Version }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} - {{- "_cross_checksums.txt" }} + {{ .ProjectName }}d_{{ .Version }}_checksums.txt dockers: - use: buildx @@ -138,13 +133,8 @@ dockers: goarch: arm64 dockerfile: docker/Dockerfile image_templates: - # Latest tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest-arm64' - # Version tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}-arm64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}:testnet-latest-arm64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}:testnet-{{ .Version }}-arm64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/arm64" @@ -157,52 +147,16 @@ dockers: - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" - "--label=org.opencontainers.image.licenses=Apache-2.0" - - use: buildx - goos: linux - goarch: arm64 - dockerfile: docker/Dockerfile.dev - image_templates: - # Latest dev tag - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:latest-arm64' - # Version dev tag - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:{{ .Version }}-arm64' - # Testnet dev tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:testnet-latest-arm64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:testnet-{{ .Version }}-arm64{{ end }}' - build_flag_templates: - - "--pull" - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title=arkeod-dev" - - "--label=org.opencontainers.image.description=Arkeo Daemon Development Build" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.url=https://arkeo.network/" - - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" - - "--label=org.opencontainers.image.licenses=Apache-2.0" - docker_manifests: - # Production manifests - - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - image_templates: - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest-amd64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest-arm64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - - - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - image_templates: - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}-amd64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}-arm64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - - # Development manifests - - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:latest{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' + - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest' image_templates: - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:latest-amd64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:latest-arm64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest-arm64' - - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:{{ .Version }}{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' + - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}' image_templates: - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:{{ .Version }}-amd64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:{{ .Version }}-arm64{{ if eq .Env.BUILD_TAG "testnet" }}-testnet{{ end }}' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}-arm64' release: skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-arkeo-testnet.yaml b/releaser/.goreleaser-arkeo-testnet.yaml new file mode 100644 index 00000000..638dd7ac --- /dev/null +++ b/releaser/.goreleaser-arkeo-testnet.yaml @@ -0,0 +1,100 @@ +before: + hooks: + - go mod tidy + +env: + - CGO_ENABLED=1 + +builds: + - id: arkeod-testnet-linux-amd64 + binary: arkeod-testnet + main: ./cmd/arkeod + goos: + - linux + goarch: + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + +archives: + - id: archive-versioned + builds: + - arkeod-testnet-linux-amd64 + name_template: >- + arkeod-testnet_{{ .Version }}_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: zip + files: + - none* + + - id: archive-binary + builds: + - arkeod-testnet-linux-amd64 + name_template: >- + arkeod-testnet_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: binary + files: + - none* + +checksum: + name_template: >- + arkeod-testnet_{{ .Version }}_checksums.txt + +dockers: + - use: buildx + goos: linux + goarch: amd64 + dockerfile: docker/Dockerfile + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet:{{ .Version }}-amd64' + build_flag_templates: + - "--pull" + - "--platform=linux/amd64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=arkeod-testnet" + - "--label=org.opencontainers.image.description=Arkeo Daemon Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + + - use: buildx + goos: linux + goarch: amd64 + dockerfile: docker/Dockerfile.dev + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet-dev:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-testnet-dev:{{ .Version }}-amd64' + build_flag_templates: + - "--pull" + - "--platform=linux/amd64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=arkeod-testnet-dev" + - "--label=org.opencontainers.image.description=Arkeo Daemon Testnet Development Build" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser.yaml b/releaser/.goreleaser-arkeo.yaml similarity index 75% rename from releaser/.goreleaser.yaml rename to releaser/.goreleaser-arkeo.yaml index efb5d1ad..c13fd73a 100644 --- a/releaser/.goreleaser.yaml +++ b/releaser/.goreleaser-arkeo.yaml @@ -23,14 +23,14 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' archives: - id: archive-versioned @@ -38,7 +38,6 @@ archives: - arkeod-linux-amd64 name_template: >- {{ .ProjectName }}d_{{ .Version }}_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: zip files: @@ -49,7 +48,6 @@ archives: - arkeod-linux-amd64 name_template: >- {{ .ProjectName }}d_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: binary files: @@ -57,9 +55,7 @@ archives: checksum: name_template: >- - {{ .ProjectName }}d_{{ .Version }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} - {{- "_checksums.txt" }} + {{ .ProjectName }}d_{{ .Version }}_checksums.txt dockers: - use: buildx @@ -67,13 +63,8 @@ dockers: goarch: amd64 dockerfile: docker/Dockerfile image_templates: - # Latest tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:latest-amd64' - # Version tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}:{{ .Version }}-amd64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}:testnet-latest-amd64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}:testnet-{{ .Version }}-amd64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/amd64" @@ -91,13 +82,8 @@ dockers: goarch: amd64 dockerfile: docker/Dockerfile.dev image_templates: - # Dev latest tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:latest-amd64' - # Dev version tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:{{ .Version }}-amd64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:testnet-latest-amd64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}-dev:testnet-{{ .Version }}-amd64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/amd64" diff --git a/releaser/.goreleaser-directory-cross-testnet.yaml b/releaser/.goreleaser-directory-cross-testnet.yaml new file mode 100644 index 00000000..bcb788a6 --- /dev/null +++ b/releaser/.goreleaser-directory-cross-testnet.yaml @@ -0,0 +1,218 @@ +before: + hooks: + - go mod tidy + +env: + - CGO_ENABLED=1 + +builds: + - id: api-testnet-darwin + binary: api-testnet + env: + - CC=o64-clang + - CGO_LDFLAGS=-L/lib + main: ./cmd/directory/api + goos: + - darwin + goarch: + - arm64 + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -w -s + - -linkmode=external + tags: + - 'testnet' + + - id: indexer-testnet-darwin + binary: indexer-testnet + env: + - CC=o64-clang + - CGO_LDFLAGS=-L/lib + main: ./cmd/directory/indexer + goos: + - darwin + goarch: + - arm64 + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -w -s + - -linkmode=external + tags: + - 'testnet' + + - id: api-testnet-linux-arm64 + binary: api-testnet + env: + - CC=aarch64-linux-gnu-gcc + - CXX=aarch64-linux-gnu-g++ + main: ./cmd/directory/api + goos: + - linux + goarch: + - arm64 + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + + - id: indexer-testnet-linux-arm64 + binary: indexer-testnet + env: + - CC=aarch64-linux-gnu-gcc + - CXX=aarch64-linux-gnu-g++ + main: ./cmd/directory/indexer + goos: + - linux + goarch: + - arm64 + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github. + + +universal_binaries: + - id: directory-testnet-darwin-universal + ids: + - api-testnet-darwin + - indexer-testnet-darwin + replace: false + name_template: >- + directory-testnet_{{ .Version }}_darwin_universal + +archives: + - id: archive-versioned + allow_different_binary_count: true + builds: + - api-testnet-darwin + - indexer-testnet-darwin + - directory-testnet-darwin-universal + - api-testnet-linux-arm64 + - indexer-testnet-linux-arm64 + name_template: >- + directory-testnet_{{ .Version }}_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: zip + files: + - none* + + - id: archive-binary + allow_different_binary_count: true + builds: + - api-testnet-darwin + - indexer-testnet-darwin + - api-testnet-linux-arm64 + - indexer-testnet-linux-arm64 + - directory-testnet-darwin-universal + name_template: >- + directory-testnet_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: binary + files: + - none* + +checksum: + name_template: >- + directory-testnet_{{ .Version }}_checksums.txt + +dockers: + - use: buildx + goos: linux + goarch: arm64 + dockerfile: docker/Dockerfile.api + image_templates: + - 'ghcr.io/arkeonetwork/directory/api-testnet:latest-arm64' + - 'ghcr.io/arkeonetwork/directory/api-testnet:{{ .Version }}-arm64' + build_flag_templates: + - "--pull" + - "--platform=linux/arm64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=directory-api-testnet" + - "--label=org.opencontainers.image.description=Arkeo Directory API Service Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + + - use: buildx + goos: linux + goarch: arm64 + dockerfile: docker/Dockerfile.indexer + image_templates: + - 'ghcr.io/arkeonetwork/directory/indexer-testnet:latest-arm64' + - 'ghcr.io/arkeonetwork/directory/indexer-testnet:{{ .Version }}-arm64' + build_flag_templates: + - "--pull" + - "--platform=linux/arm64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=directory-indexer-testnet" + - "--label=org.opencontainers.image.description=Arkeo Directory Indexer Service Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + +docker_manifests: + - name_template: 'ghcr.io/arkeonetwork/directory/api-testnet:latest' + image_templates: + - 'ghcr.io/arkeonetwork/directory/api-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/directory/api-testnet:latest-arm64' + + - name_template: 'ghcr.io/arkeonetwork/directory/api-testnet:{{ .Version }}' + image_templates: + - 'ghcr.io/arkeonetwork/directory/api-testnet:{{ .Version }}-amd64' + - 'ghcr.io/arkeonetwork/directory/api-testnet:{{ .Version }}-arm64' + + - name_template: 'ghcr.io/arkeonetwork/directory/indexer-testnet:latest' + image_templates: + - 'ghcr.io/arkeonetwork/directory/indexer-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/directory/indexer-testnet:latest-arm64' + + - name_template: 'ghcr.io/arkeonetwork/directory/indexer-testnet:{{ .Version }}' + image_templates: + - 'ghcr.io/arkeonetwork/directory/indexer-testnet:{{ .Version }}-amd64' + - 'ghcr.io/arkeonetwork/directory/indexer-testnet:{{ .Version }}-arm64' + +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-directory-cross.yaml b/releaser/.goreleaser-directory-cross.yaml index abb27fae..e1b0bfe0 100644 --- a/releaser/.goreleaser-directory-cross.yaml +++ b/releaser/.goreleaser-directory-cross.yaml @@ -27,13 +27,13 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -w -s - -linkmode=external tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: indexer-darwin binary: indexer @@ -56,13 +56,13 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -w -s - -linkmode=external tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: api-linux-arm64 binary: api @@ -80,14 +80,14 @@ builds: - -X main.date={{ .CommitDate }} - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: indexer-linux-arm64 binary: indexer @@ -105,14 +105,14 @@ builds: - -X main.date={{ .CommitDate }} - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' universal_binaries: - id: directory-darwin-universal @@ -122,7 +122,6 @@ universal_binaries: replace: false name_template: >- directory_{{ .Version }}_darwin_universal - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} archives: - id: archive-versioned @@ -135,7 +134,6 @@ archives: - indexer-linux-arm64 name_template: >- directory_{{ .Version }}_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: zip files: @@ -151,7 +149,6 @@ archives: - directory-darwin-universal name_template: >- directory_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: binary files: @@ -159,9 +156,7 @@ archives: checksum: name_template: >- - directory_{{ .Version }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} - {{- "_cross_checksums.txt" }} + directory_{{ .Version }}_checksums.txt dockers: - use: buildx @@ -169,13 +164,8 @@ dockers: goarch: arm64 dockerfile: docker/Dockerfile.api image_templates: - # Latest API tag - 'ghcr.io/arkeonetwork/directory/api:latest-arm64' - # Version API tag - 'ghcr.io/arkeonetwork/directory/api:{{ .Version }}-arm64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/directory/api:testnet-latest-arm64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/directory/api:testnet-{{ .Version }}-arm64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/arm64" @@ -193,13 +183,8 @@ dockers: goarch: arm64 dockerfile: docker/Dockerfile.indexer image_templates: - # Latest indexer tag - 'ghcr.io/arkeonetwork/directory/indexer:latest-arm64' - # Version indexer tag - 'ghcr.io/arkeonetwork/directory/indexer:{{ .Version }}-arm64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/directory/indexer:testnet-latest-arm64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/directory/indexer:testnet-{{ .Version }}-arm64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/arm64" @@ -213,7 +198,6 @@ dockers: - "--label=org.opencontainers.image.licenses=Apache-2.0" docker_manifests: - # API manifests - name_template: 'ghcr.io/arkeonetwork/directory/api:latest' image_templates: - 'ghcr.io/arkeonetwork/directory/api:latest-amd64' @@ -224,19 +208,6 @@ docker_manifests: - 'ghcr.io/arkeonetwork/directory/api:{{ .Version }}-amd64' - 'ghcr.io/arkeonetwork/directory/api:{{ .Version }}-arm64' - - name_template: 'ghcr.io/arkeonetwork/directory/api:testnet-latest' - skip_push: '{{ ne .Env.BUILD_TAG "testnet" }}' - image_templates: - - 'ghcr.io/arkeonetwork/directory/api:testnet-latest-amd64' - - 'ghcr.io/arkeonetwork/directory/api:testnet-latest-arm64' - - - name_template: 'ghcr.io/arkeonetwork/directory/api:testnet-{{ .Version }}' - skip_push: '{{ ne .Env.BUILD_TAG "testnet" }}' - image_templates: - - 'ghcr.io/arkeonetwork/directory/api:testnet-{{ .Version }}-amd64' - - 'ghcr.io/arkeonetwork/directory/api:testnet-{{ .Version }}-arm64' - - # Indexer manifests - name_template: 'ghcr.io/arkeonetwork/directory/indexer:latest' image_templates: - 'ghcr.io/arkeonetwork/directory/indexer:latest-amd64' @@ -247,14 +218,5 @@ docker_manifests: - 'ghcr.io/arkeonetwork/directory/indexer:{{ .Version }}-amd64' - 'ghcr.io/arkeonetwork/directory/indexer:{{ .Version }}-arm64' - - name_template: 'ghcr.io/arkeonetwork/directory/indexer:testnet-latest' - skip_push: '{{ ne .Env.BUILD_TAG "testnet" }}' - image_templates: - - 'ghcr.io/arkeonetwork/directory/indexer:testnet-latest-amd64' - - 'ghcr.io/arkeonetwork/directory/indexer:testnet-latest-arm64' - - - name_template: 'ghcr.io/arkeonetwork/directory/indexer:testnet-{{ .Version }}' - skip_push: '{{ ne .Env.BUILD_TAG "testnet" }}' - image_templates: - - 'ghcr.io/arkeonetwork/directory/indexer:testnet-{{ .Version }}-amd64' - - 'ghcr.io/arkeonetwork/directory/indexer:testnet-{{ .Version }}-arm64' \ No newline at end of file +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-directory-testnet.yaml b/releaser/.goreleaser-directory-testnet.yaml new file mode 100644 index 00000000..bd1fa3d9 --- /dev/null +++ b/releaser/.goreleaser-directory-testnet.yaml @@ -0,0 +1,128 @@ +before: + hooks: + - go mod tidy + +env: + - CGO_ENABLED=1 + +builds: + - id: api-testnet-linux-amd64 + binary: api-testnet + main: ./cmd/directory/api + goos: + - linux + goarch: + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + + - id: indexer-testnet-linux-amd64 + binary: indexer-testnet + main: ./cmd/directory/indexer + goos: + - linux + goarch: + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + +archives: + - id: archive-versioned + builds: + - api-testnet-linux-amd64 + - indexer-testnet-linux-amd64 + name_template: >- + directory-testnet_{{ .Version }}_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: zip + files: + - none* + + - id: archive-binary + builds: + - api-testnet-linux-amd64 + - indexer-testnet-linux-amd64 + name_template: >- + directory-testnet_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: binary + files: + - none* + +checksum: + name_template: >- + directory-testnet_{{ .Version }}_checksums.txt + +dockers: + - use: buildx + goos: linux + goarch: amd64 + dockerfile: docker/Dockerfile.api + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/api-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/api-testnet:{{ .Version }}-amd64' + build_flag_templates: + - "--pull" + - "--platform=linux/amd64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=directory-api-testnet" + - "--label=org.opencontainers.image.description=Arkeo Directory API Service Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + + - use: buildx + goos: linux + goarch: amd64 + dockerfile: docker/Dockerfile.indexer + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/indexer-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/indexer-testnet:{{ .Version }}-amd64' + build_flag_templates: + - "--pull" + - "--platform=linux/amd64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=directory-indexer-testnet" + - "--label=org.opencontainers.image.description=Arkeo Directory Indexer Service Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-directory.yaml b/releaser/.goreleaser-directory.yaml index 149d35b6..11fceb7e 100644 --- a/releaser/.goreleaser-directory.yaml +++ b/releaser/.goreleaser-directory.yaml @@ -23,14 +23,14 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: indexer-linux-amd64 binary: indexer @@ -49,14 +49,14 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' archives: - id: archive-versioned @@ -65,7 +65,6 @@ archives: - indexer-linux-amd64 name_template: >- directory_{{ .Version }}_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: zip files: @@ -77,7 +76,6 @@ archives: - indexer-linux-amd64 name_template: >- directory_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: binary files: @@ -85,9 +83,7 @@ archives: checksum: name_template: >- - directory_{{ .Version }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} - {{- "_checksums.txt" }} + directory_{{ .Version }}_checksums.txt dockers: - use: buildx @@ -95,13 +91,8 @@ dockers: goarch: amd64 dockerfile: docker/Dockerfile.api image_templates: - # Latest API tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/api:latest-amd64' - # Version API tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/api:{{ .Version }}-amd64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/api:testnet-latest-amd64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/api:testnet-{{ .Version }}-amd64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/amd64" @@ -119,13 +110,8 @@ dockers: goarch: amd64 dockerfile: docker/Dockerfile.indexer image_templates: - # Latest indexer tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/indexer:latest-amd64' - # Version indexer tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/indexer:{{ .Version }}-amd64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/indexer:testnet-latest-amd64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/indexer:testnet-{{ .Version }}-amd64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/amd64" diff --git a/releaser/.goreleaser-sentinel-cross-testnet.yaml b/releaser/.goreleaser-sentinel-cross-testnet.yaml new file mode 100644 index 00000000..434747ed --- /dev/null +++ b/releaser/.goreleaser-sentinel-cross-testnet.yaml @@ -0,0 +1,134 @@ +before: + hooks: + - go mod tidy + +env: + - CGO_ENABLED=1 + +builds: + - id: sentinel-testnet-darwin + binary: sentinel-testnet + env: + - CC=o64-clang + - CGO_LDFLAGS=-L/lib + main: ./cmd/sentinel + goos: + - darwin + goarch: + - arm64 + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/sentinel.Version={{ .Env.SENTINEL_VERSION }} + - -w -s + - -linkmode=external + tags: + - 'testnet' + + - id: sentinel-testnet-linux-arm64 + binary: sentinel-testnet + env: + - CC=aarch64-linux-gnu-gcc + - CXX=aarch64-linux-gnu-g++ + main: ./cmd/sentinel + goos: + - linux + goarch: + - arm64 + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/sentinel.Version={{ .Env.SENTINEL_VERSION }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + +universal_binaries: + - id: sentinel-testnet-darwin-universal + ids: + - sentinel-testnet-darwin + replace: false + name_template: >- + sentinel-testnet_{{ .Version }}_darwin_universal + +archives: + - id: archive-versioned + builds: + - sentinel-testnet-darwin + - sentinel-testnet-linux-arm64 + - sentinel-testnet-darwin-universal + name_template: >- + sentinel-testnet_{{ .Env.SENTINEL_VERSION }}_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: zip + files: + - none* + + - id: archive-binary + builds: + - sentinel-testnet-darwin + - sentinel-testnet-linux-arm64 + - sentinel-testnet-darwin-universal + name_template: >- + sentinel-testnet_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: binary + files: + - none* + +checksum: + name_template: >- + sentinel-testnet_{{ .Env.SENTINEL_VERSION }}_checksums.txt + +dockers: + - use: buildx + goos: linux + goarch: arm64 + dockerfile: docker/Dockerfile.sentinel + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:latest-arm64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:{{ .Env.SENTINEL_VERSION }}-arm64' + build_flag_templates: + - "--pull" + - "--platform=linux/arm64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=sentinel-testnet" + - "--label=org.opencontainers.image.description=Arkeo Sentinel Service Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Env.SENTINEL_VERSION}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + +docker_manifests: + - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:latest' + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:latest-arm64' + + - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:{{ .Env.SENTINEL_VERSION }}' + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:{{ .Env.SENTINEL_VERSION }}-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:{{ .Env.SENTINEL_VERSION }}-arm64' + +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-sentinel-cross.yaml b/releaser/.goreleaser-sentinel-cross.yaml index 41579b0c..9e627a86 100644 --- a/releaser/.goreleaser-sentinel-cross.yaml +++ b/releaser/.goreleaser-sentinel-cross.yaml @@ -27,14 +27,14 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/sentinel.Version={{ .Env.SENTINEL_VERSION }} - -w -s - -linkmode=external tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' - id: sentinel-linux-arm64 binary: sentinel @@ -52,7 +52,7 @@ builds: - -X main.date={{ .CommitDate }} - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} @@ -60,7 +60,7 @@ builds: - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' universal_binaries: - id: sentinel-darwin-universal @@ -69,7 +69,6 @@ universal_binaries: replace: false name_template: >- sentinel_{{ .Version }}_darwin_universal - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} archives: - id: archive-versioned @@ -79,7 +78,6 @@ archives: - sentinel-darwin-universal name_template: >- sentinel_{{ .Env.SENTINEL_VERSION }}_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: zip files: @@ -92,7 +90,6 @@ archives: - sentinel-darwin-universal name_template: >- sentinel_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: binary files: @@ -100,9 +97,7 @@ archives: checksum: name_template: >- - sentinel_{{ .Env.SENTINEL_VERSION }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} - {{- "_cross_checksums.txt" }} + sentinel_{{ .Env.SENTINEL_VERSION }}_checksums.txt dockers: - use: buildx @@ -110,13 +105,8 @@ dockers: goarch: arm64 dockerfile: docker/Dockerfile.sentinel image_templates: - # Latest tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:latest-arm64' - # Version tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:{{ .Env.SENTINEL_VERSION }}-arm64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-latest-arm64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-{{ .Env.SENTINEL_VERSION }}-arm64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/arm64" @@ -140,17 +130,5 @@ docker_manifests: - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:{{ .Env.SENTINEL_VERSION }}-amd64' - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:{{ .Env.SENTINEL_VERSION }}-arm64' - - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-latest' - skip_push: '{{ ne .Env.BUILD_TAG "testnet" }}' - image_templates: - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-latest-amd64' - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-latest-arm64' - - - name_template: 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-{{ .Env.SENTINEL_VERSION }}' - skip_push: '{{ ne .Env.BUILD_TAG "testnet" }}' - image_templates: - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-{{ .Env.SENTINEL_VERSION }}-amd64' - - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-{{ .Env.SENTINEL_VERSION }}-arm64' - release: skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-sentinel-testnet.yaml b/releaser/.goreleaser-sentinel-testnet.yaml new file mode 100644 index 00000000..a6dd45dd --- /dev/null +++ b/releaser/.goreleaser-sentinel-testnet.yaml @@ -0,0 +1,82 @@ +before: + hooks: + - go mod tidy + +env: + - CGO_ENABLED=1 + +builds: + - id: sentinel-testnet-linux-amd64 + binary: sentinel-testnet + main: ./cmd/sentinel + goos: + - linux + goarch: + - amd64 + flags: + - -mod=readonly + - -trimpath + ldflags: + - -s -w + - -X main.commit={{.Commit}} + - -X main.date={{ .CommitDate }} + - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo + - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} + - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=testnet + - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} + - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} + - -X github.com/arkeonetwork/arkeo/sentinel.Version={{ .Env.SENTINEL_VERSION }} + - -linkmode=external + - -extldflags '-Wl,-z,muldefs --static -lm' + tags: + - 'testnet' + +archives: + - id: archive-versioned + builds: + - sentinel-testnet-linux-amd64 + name_template: >- + sentinel-testnet_{{ .Env.SENTINEL_VERSION }}_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: zip + files: + - none* + + - id: archive-binary + builds: + - sentinel-testnet-linux-amd64 + name_template: >- + sentinel-testnet_{{ .Os }}_{{ .Arch }} + wrap_in_directory: false + format: binary + files: + - none* + +checksum: + name_template: >- + sentinel-testnet_{{ .Env.SENTINEL_VERSION }}_checksums.txt + +dockers: + - use: buildx + goos: linux + goarch: amd64 + dockerfile: docker/Dockerfile.sentinel + image_templates: + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:latest-amd64' + - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel-testnet:{{ .Env.SENTINEL_VERSION }}-amd64' + build_flag_templates: + - "--pull" + - "--platform=linux/amd64" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title=sentinel-testnet" + - "--label=org.opencontainers.image.description=Arkeo Sentinel Service Testnet" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Env.SENTINEL_VERSION}}" + - "--label=org.opencontainers.image.url=https://arkeo.network/" + - "--label=org.opencontainers.image.source=https://github.com/arkeonetwork/arkeo" + - "--label=org.opencontainers.image.licenses=Apache-2.0" + +release: + skip_upload: '{{ if eq .Env.RELEASE "true" }}false{{else}}true{{end}}' \ No newline at end of file diff --git a/releaser/.goreleaser-sentinel.yaml b/releaser/.goreleaser-sentinel.yaml index 48229b7d..aca12bff 100644 --- a/releaser/.goreleaser-sentinel.yaml +++ b/releaser/.goreleaser-sentinel.yaml @@ -23,7 +23,7 @@ builds: - -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo - -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} - -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo - - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAG }} + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=mainnet - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=v{{ .Version }} - -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit={{ .Commit }} @@ -31,7 +31,7 @@ builds: - -linkmode=external - -extldflags '-Wl,-z,muldefs --static -lm' tags: - - '{{ .Env.BUILD_TAG }}' + - 'mainnet' archives: - id: archive-versioned @@ -39,7 +39,6 @@ archives: - sentinel-linux-amd64 name_template: >- sentinel_{{ .Env.SENTINEL_VERSION }}_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: zip files: @@ -50,7 +49,6 @@ archives: - sentinel-linux-amd64 name_template: >- sentinel_{{ .Os }}_{{ .Arch }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} wrap_in_directory: false format: binary files: @@ -58,9 +56,7 @@ archives: checksum: name_template: >- - sentinel_{{ .Env.SENTINEL_VERSION }} - {{- if eq .Env.BUILD_TAG "testnet" }}_testnet{{ end }} - {{- "_checksums.txt" }} + sentinel_{{ .Env.SENTINEL_VERSION }}_checksums.txt dockers: - use: buildx @@ -68,13 +64,8 @@ dockers: goarch: amd64 dockerfile: docker/Dockerfile.sentinel image_templates: - # Latest tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:latest-amd64' - # Version tag - 'ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:{{ .Env.SENTINEL_VERSION }}-amd64' - # Testnet tags if applicable - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-latest-amd64{{ end }}' - - '{{ if eq .Env.BUILD_TAG "testnet" }}ghcr.io/arkeonetwork/{{ .ProjectName }}/sentinel:testnet-{{ .Env.SENTINEL_VERSION }}-amd64{{ end }}' build_flag_templates: - "--pull" - "--platform=linux/amd64" From 8c02d556264d5f1060ff3f7fcec8384ff318bd75 Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Thu, 19 Dec 2024 12:16:19 +0530 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c0ab0ad..574d9478 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ Contains all the PRs that improved the code without changing the behaviors. ## Changed - Updated sentinel to handle provider events +- moved testnet and mainnet releaser separately ## Fixed - Fixed code lint