Skip to content

Commit bf42af6

Browse files
committed
Polish release script
1 parent 3c3b738 commit bf42af6

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,18 @@ endef
153153

154154
release-binary:
155155
mkdir -p release/bin
156-
cp LICENSE release/bin
156+
cp dist/LICENSE release/bin
157+
cp -R dist/licenses release/bin
157158
cp NOTICE release/bin
159+
cp dist/release-operator.yaml release/bin/operator.yaml
158160
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
159-
$(KUSTOMIZE) build config/default > release/bin/operator.yaml
161+
$(KUSTOMIZE) build config/default >> release/bin/operator.yaml
160162
cp -R config/samples release/bin/samples
161-
tar -czf ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz \
162-
release/bin
163-
gpg --batch --yes --armor --detach-sig ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz
164-
shasum -a 512 ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz > ./release/bin/dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz.sha512
163+
pushd release/bin && \
164+
tar -czf dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz * && \
165+
gpg --batch --yes --armor --detach-sig dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz && \
166+
shasum -a 512 dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz > dolphinscheduler-operator-${RELEASE_VERSION}-bin.tgz.sha512 && \
167+
popd
165168

166169
.PHONY: release-source
167170
release-source:
@@ -181,7 +184,7 @@ release-source:
181184
--exclude="*.test" \
182185
--exclude="*.out" \
183186
-czf ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz \
184-
.
187+
*
185188
gpg --batch --yes --armor --detach-sig ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz
186189
shasum -a 512 ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz > ./release/src/dolphinscheduler-operator-${RELEASE_VERSION}-src.tgz.sha512
187190

dist/release-operator.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#

0 commit comments

Comments
 (0)