Skip to content

Commit

Permalink
Polish release script
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Aug 9, 2022
1 parent 3c3b738 commit bf42af6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
18 changes: 18 additions & 0 deletions dist/release-operator.yaml
Original file line number Diff line number Diff line change
@@ -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.
#

0 comments on commit bf42af6

Please sign in to comment.