Skip to content

Commit

Permalink
fix: update goreleaser (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
smritidahal653 authored Aug 13, 2024
1 parent 681d624 commit 889b7ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TEST_CREDENTIALS_JSON ?= $(TEST_CREDENTIALS_DIR)/credentials.json
TEST_LOGANALYTICS_JSON ?= $(TEST_CREDENTIALS_DIR)/loganalytics.json
export TEST_CREDENTIALS_JSON TEST_LOGANALYTICS_JSON TEST_AKS_CREDENTIALS_JSON

VERSION ?= v1.6.2
VERSION ?= v1.6.1
REGISTRY ?= ghcr.io
IMG_NAME ?= virtual-kubelet
INIT_IMG_NAME ?= init-validation
Expand All @@ -35,7 +35,7 @@ E2E_CLUSTER_NAME := $(CLUSTER_NAME)
OUTPUT_TYPE ?= type=docker
BUILDPLATFORM ?= linux/amd64
IMG_TAG ?= $(subst v,,$(VERSION))
INIT_IMG_TAG ?= v0.3.0
INIT_IMG_TAG ?= v0.2.0

BUILD_DATE ?= $(shell date '+%Y-%m-%dT%H:%M:%S')
VERSION_FLAGS := "-ldflags=-X main.buildVersion=$(IMG_TAG) -X main.buildTime=$(BUILD_DATE)"
Expand All @@ -52,12 +52,12 @@ $(GOIMPORTS):
GOBIN=$(TOOLS_BIN_DIR) $(GO_INSTALL) golang.org/x/tools/cmd/goimports $(GOIMPORTS_BIN) $(GOIMPORTS_VER)

BUILDX_BUILDER_NAME ?= img-builder
QEMU_VERSION ?= 5.2.0-2
QEMU_VERSION ?= 7.2.0-1

.PHONY: docker-buildx-builder
docker-buildx-builder:
@if ! docker buildx ls | grep $(BUILDX_BUILDER_NAME); then \
docker run --rm --privileged multiarch/qemu-user-static:$(QEMU_VERSION) --reset -p yes; \
docker run --rm --privileged mcr.microsoft.com/mirror/docker/multiarch/qemu-user-static:$(QEMU_VERSION) --reset -p yes; \
docker buildx create --name $(BUILDX_BUILDER_NAME) --use; \
docker buildx inspect $(BUILDX_BUILDER_NAME) --bootstrap; \
fi
Expand Down
3 changes: 2 additions & 1 deletion goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# refer to https://goreleaser.com for more options
version: 2
before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -54,8 +55,8 @@ release:
prerelease: auto
header: |
## {{.Tag}} - {{ time "2006-01-02" }}
make_latest: true
changelog:
skip: false
groups:
- title: Features 🌈
regexp: ^.*feat[(\\w)]*:+.*$
Expand Down

0 comments on commit 889b7ba

Please sign in to comment.