-
Notifications
You must be signed in to change notification settings - Fork 10
/
deploy.sh
executable file
·32 lines (24 loc) · 1015 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
#*******************************************************************************
# Copyright (c) 2023 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html
# SPDX-License-Identifier: EPL-2.0
#*******************************************************************************
# Bash strict-mode
set -o errexit
set -o nounset
set -o pipefail
IFS=$'\n\t'
VERSION="${1:-}"
if [[ -z "${VERSION}" ]]; then
>&2 printf "ERROR: a version must be given.\n"
exit 1
fi
git checkout "tags/v${VERSION}" -b "v${VERSION}-branch"
./webservice/service-deployment.sh webservice/signing/jar/default.jsonnet "${VERSION}"
./webservice/service-deployment.sh webservice/signing/jar/jce.jsonnet "${VERSION}"
./webservice/service-deployment.sh webservice/signing/windows/service.jsonnet "${VERSION}"
git checkout main
git branch -d "v${VERSION}-branch"