From 1363c691c7c333f93ff698d3b3ee2d82e14d9f1f Mon Sep 17 00:00:00 2001 From: KJ Date: Mon, 6 Jul 2020 17:26:11 +0900 Subject: [PATCH] Fix archives --- Makefile | 8 ++++++-- psp-util.yaml | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a50a45a..b33bf7a 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,11 @@ update-version: sed -i.bak -e "s/v[0-9].[0-9].[0-9][-alpha]*[-beta]*/${VERSION}/g" ./cmd/version.go sed -i.bak -e "s/v[0-9].[0-9].[0-9][-alpha]*[-beta]*/${VERSION}/g" ./psp-util.yaml +checksum: + shasum -a 256 bin/release/psp-util_v1.0.0-alpha_darwin_amd64.tar.gz | awk '{print $$1}' + shasum -a 256 bin/release/psp-util_v1.0.0-alpha_linux_amd64.tar.gz | awk '{print $$1}' + release: update-version multi-build mkdir -p bin/release - tar -zcvf bin/release/${NAME}_${VERSION}_darwin_amd64.tar.gz LICENSE bin/darwin_amd64/${NAME} - tar -zcvf bin/release/${NAME}_${VERSION}_linux_amd64.tar.gz LICENSE bin/linux_amd64/${NAME} + tar -zcvf bin/release/${NAME}_${VERSION}_darwin_amd64.tar.gz LICENSE -C bin/darwin_amd64/ ${NAME} + tar -zcvf bin/release/${NAME}_${VERSION}_linux_amd64.tar.gz LICENSE -C bin/linux_amd64/ ${NAME} \ No newline at end of file diff --git a/psp-util.yaml b/psp-util.yaml index 42d43c5..6e8842d 100644 --- a/psp-util.yaml +++ b/psp-util.yaml @@ -10,21 +10,21 @@ spec: view the relations which PSP is effected to each Subjects. homepage: https://github.com/jlandowner/psp-util platforms: - - bin: kubectl-psp-util + - bin: psp-util files: null selector: matchLabels: arch: amd64 os: darwin - sha256: XXX + sha256: 0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5 uri: https://github.com/jlandowner/psp-util/releases/download/v1.0.0-alpha/psp-util_v1.0.0-alpha_darwin_amd64.tar.gz - - bin: kubectl-psp-util + - bin: psp-util files: null selector: matchLabels: arch: amd64 os: linux - sha256: XXX + sha256: 0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5 uri: https://github.com/jlandowner/psp-util/releases/download/v1.0.0-alpha/psp-util_v1.0.0-alpha_linux_amd64.tar.gz shortDescription: Manage Pod Security Policy(PSP) and RBAC Resources. version: v1.0.0-alpha