Skip to content

Commit

Permalink
fix: wrong image name in release manifests (#320)
Browse files Browse the repository at this point in the history
Signed-off-by: Xunzhuo <[email protected]>

Signed-off-by: Xunzhuo <[email protected]>
  • Loading branch information
Xunzhuo authored Aug 31, 2022
1 parent cefcb42 commit 6fd629a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:
run: make image.push.multiarch TAG=${EG_TAG_VERSION} IMAGE_NAME=gateway PLATFORMS="linux_amd64 linux_arm64"

- name: Generate Release Manifests
run: make release-manifests
env:
EG_TAG_VERSION: ${{ steps.tag_env.outputs.version}}
run: make release-manifests TAG=${EG_TAG_VERSION}

- name: Upload Release Manifests
uses: softprops/action-gh-release@v1
Expand Down
6 changes: 0 additions & 6 deletions tools/make/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ ifeq ($(origin OUTPUT_DIR),undefined)
OUTPUT_DIR := $(ROOT_DIR)/bin
endif

# Set the version number. you should not need to do this
# for the majority of scenarios.
ifeq ($(origin VERSION), undefined)
VERSION := $(shell git describe --abbrev=0 --dirty --always --tags | sed 's/-/./g')
endif

# REV is the short git sha of latest commit.
REV=$(shell git rev-parse --short HEAD)

Expand Down
2 changes: 1 addition & 1 deletion tools/make/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ go.build.%:
$(eval PLATFORM := $(word 1,$(subst ., ,$*)))
$(eval OS := $(word 1,$(subst _, ,$(PLATFORM))))
$(eval ARCH := $(word 2,$(subst _, ,$(PLATFORM))))
@$(call log, "Building binary $(COMMAND) with commit $(REV) in version $(VERSION) for $(OS) $(ARCH)")
@$(call log, "Building binary $(COMMAND) with commit $(REV) for $(OS) $(ARCH)")
CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) go build -o $(OUTPUT_DIR)/$(OS)/$(ARCH)/$(COMMAND) $(ROOT_PACKAGE)/cmd/$(COMMAND)

# Build the envoy-gateway binaries in the hosted platforms.
Expand Down
2 changes: 1 addition & 1 deletion tools/make/kube.mk
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ delete-cluster: $(tools/kind) ## Delete kind cluster.

.PHONY: release-manifests
release-manifests: $(tools/kustomize)
tools/hack/release-manifests.sh $(GATEWAY_API_VERSION) $(VERSION)
tools/hack/release-manifests.sh $(GATEWAY_API_VERSION) $(TAG)

0 comments on commit 6fd629a

Please sign in to comment.