Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ dockers:
goos: linux
goarch: amd64
image_templates:
- 'ghcr.io/ovrclk/akash:{{if eq .Env.MAINNET "true"}}stable{{else}}latest{{end}}'
- 'ghcr.io/ovrclk/akash:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}'
- 'ghcr.io/ovrclk/akash:{{ .ShortCommit }}'
- 'ghcr.io/ovrclk/akash:{{ .Version }}'
brews:
Expand Down
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,25 @@ GIT_HEAD_ABBREV := $(shell git rev-parse --abbrev-ref HEAD)
RELEASE_TAG ?= $(shell git describe --tags --abbrev=0)
IS_PREREL := $(shell $(ROOT_DIR)/script/is_prerelease.sh "$(RELEASE_TAG)")
IS_MAINNET := $(shell $(ROOT_DIR)/script/mainnet-from-tag.sh "$(RELEASE_TAG)")
IS_STABLE ?= false

GO_LINKMODE ?= external
GO_MOD ?= readonly
BUILD_TAGS ?= osusergo,netgo,ledger,static_build
GORELEASER_STRIP_FLAGS ?=

ifeq ($(IS_MAINNET), true)
ifeq ($(GORELEASER_IS_PREREL),false)
GORELEASER_HOMEBREW_NAME=akash
GORELEASER_HOMEBREW_CUSTOM=
ifeq ($(IS_PREREL), false)
GORELEASER_HOMEBREW_NAME := akash
GORELEASER_HOMEBREW_CUSTOM :=
IS_STABLE := true
else
GORELEASER_HOMEBREW_NAME="akash-test"
GORELEASER_HOMEBREW_CUSTOM=keg_only :unneeded, \"This is testnet release. Run brew install ovrclk/tap/akash to install mainnet version\"
GORELEASER_HOMEBREW_NAME := akash-test
GORELEASER_HOMEBREW_CUSTOM := keg_only :unneeded, \"This is testnet release. Run brew install ovrclk/tap/akash to install mainnet version\"
endif
else
GORELEASER_HOMEBREW_NAME="akash-edge"
GORELEASER_HOMEBREW_CUSTOM=keg_only :unneeded, \"This is edgenet release. Run brew install ovrclk/tap/akash to install mainnet version\"
GORELEASER_HOMEBREW_NAME := akash-edge
GORELEASER_HOMEBREW_CUSTOM := keg_only :unneeded, \"This is edgenet release. Run brew install ovrclk/tap/akash to install mainnet version\"
endif

GORELEASER_BUILD_VARS := \
Expand Down
6 changes: 3 additions & 3 deletions make/releasing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ docker-image:
docker run \
--rm \
--privileged \
-e MAINNET=$(IS_MAINNET) \
-e STABLE=$(IS_STABLE) \
-e MOD="$(GO_MOD)" \
-e BUILD_TAGS="$(BUILD_TAGS)" \
-e BUILD_VARS="$(GORELEASER_BUILD_VARS)" \
Expand All @@ -66,7 +66,7 @@ release-dry-run: modvendor gen-changelog
docker run \
--rm \
--privileged \
-e MAINNET="$(IS_MAINNET)" \
-e STABLE=$(IS_STABLE) \
-e MOD="$(GO_MOD)" \
-e BUILD_TAGS="$(BUILD_TAGS)" \
-e BUILD_VARS="$(GORELEASER_BUILD_VARS)" \
Expand Down Expand Up @@ -94,7 +94,7 @@ release: modvendor gen-changelog
docker run \
--rm \
--privileged \
-e MAINNET=$(IS_MAINNET) \
-e STABLE=$(IS_STABLE) \
-e MOD="$(GO_MOD)" \
-e BUILD_TAGS="$(BUILD_TAGS)" \
-e BUILD_VARS="$(GORELEASER_BUILD_VARS)" \
Expand Down