-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·28 lines (23 loc) · 836 Bytes
/
deploy.sh
File metadata and controls
executable file
·28 lines (23 loc) · 836 Bytes
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
# Small script that deploys the extension.
# Pushes the tar file to a personal web site and then restarts the
# server pod which will download and extract the extension again
# Todo: Figure out how to do live coding with extension
echo "Enter user: "
read -p "" USER
echo "Enter password: "
read -s PASSWORD
yarn run package-dev
# Host to use for extension during development, personal host
export HOST=ftp.gexperts.com
echo "Connecting with $USER@$HOST"
# Upload extension to web server
lftp -u $USER,$PASSWORD $HOST <<EOF
set ssl:verify-certificate no
set ftp:ssl-protect-data true
cd public_html/files
put dist/extension-lightspeed-0.1.0.tar
exit
EOF
# Recreate pod to redeploy extension
oc rollout restart deploy openshift-gitops-server -n openshift-gitops
oc rollout status deploy openshift-gitops-server -n openshift-gitops