Add .exe extension to Windows distribution (#534)

This commit is contained in:
Hidetake Iwata
2021-04-17 14:50:58 +09:00
committed by GitHub
parent 0b6d34e1a2
commit 4ca11f13ac
3 changed files with 12 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ on:
- .github/workflows/go.yaml
- pkg/**
- go.*
- Makefile
tags:
- v*
pull_request:
@@ -17,6 +18,7 @@ on:
- .github/workflows/go.yaml
- pkg/**
- go.*
- Makefile
jobs:
lint:

View File

@@ -54,7 +54,7 @@ spec:
matchLabels:
os: darwin
arch: arm64
- bin: kubelogin
- bin: kubelogin.exe
{{ addURIAndSha "https://github.com/int128/kubelogin/releases/download/{{ .TagName }}/kubelogin_windows_amd64.zip" .TagName }}
selector:
matchLabels:

View File

@@ -1,6 +1,12 @@
TARGET := kubelogin
TARGET_ARCHIVE := $(TARGET)_$(GOOS)_$(GOARCH).zip
TARGET_DIGEST := $(TARGET)_$(GOOS)_$(GOARCH).zip.sha256
PRODUCT := kubelogin
TARGET_ARCHIVE := $(PRODUCT)_$(GOOS)_$(GOARCH).zip
TARGET_DIGEST := $(PRODUCT)_$(GOOS)_$(GOARCH).zip.sha256
ifeq ($(GOOS), windows)
TARGET := $(PRODUCT).exe
else
TARGET := $(PRODUCT)
endif
# determine the version from ref
ifeq ($(GITHUB_REF), refs/heads/master)