From bf42af66198ed60cac0443b319f0f3324fb4cbc2 Mon Sep 17 00:00:00 2001 From: kezhenxu94 Date: Tue, 9 Aug 2022 17:46:22 +0800 Subject: [PATCH] Polish release script --- Makefile | 17 ++++++++++------- dist/release-operator.yaml | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 dist/release-operator.yaml diff --git a/Makefile b/Makefile index 10a7be7..891c1c4 100644 --- a/Makefile +++ b/Makefile @@ -153,15 +153,18 @@ endef release-binary: mkdir -p release/bin - cp LICENSE release/bin + cp dist/LICENSE release/bin + cp -R dist/licenses release/bin cp NOTICE release/bin + cp dist/release-operator.yaml release/bin/operator.yaml cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} - $(KUSTOMIZE) build config/default > release/bin/operator.yaml + $(KUSTOMIZE) build config/default >> release/bin/operator.yaml cp -R config/samples release/bin/samples - tar -czf ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz \ - release/bin - gpg --batch --yes --armor --detach-sig ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz - shasum -a 512 ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz > ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz.sha512 + pushd release/bin && \ + tar -czf dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz * && \ + gpg --batch --yes --armor --detach-sig dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz && \ + shasum -a 512 dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz > dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz.sha512 && \ + popd .PHONY: release-source release-source: @@ -181,7 +184,7 @@ release-source: --exclude="*.test" \ --exclude="*.out" \ -czf ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz \ - . + * gpg --batch --yes --armor --detach-sig ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz shasum -a 512 ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz > ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz.sha512 diff --git a/dist/release-operator.yaml b/dist/release-operator.yaml new file mode 100644 index 0000000..fe95886 --- /dev/null +++ b/dist/release-operator.yaml @@ -0,0 +1,18 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +#