-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.sh
48 lines (37 loc) · 910 Bytes
/
release.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# echo "Did you uncomment the production URL (y/n)?"
# read answer
# if [ "$answer" != "${answer#[Nn]}" ] ;then
# echo "Exitting..."
# exit 0
# fi
# echo "Did increment version number in code (y/n)?"
# read answer
# if [ "$answer" != "${answer#[Nn]}" ] ;then
# echo "Exitting..."
# exit 0
# fi
# echo "Did create a new git tag as per current version number (y/n)?"
# read answer
# if [ "$answer" != "${answer#[Nn]}" ] ;then
# echo "Exitting..."
# exit 0
# fi
# echo "Building frontend..."
cd devops-frontend
# Build frontend
yarn
yarn build
# Create tar file
tar -czvf ui.tar.gz dist/
# Build Core Binary
echo "Building core binary..."
cd ../
goreleaser release --clean --skip-validate
# Build kubernetes plugins
cd plugins/kubernetes
goreleaser release --clean --skip-validate
cd ../
# Build kubernetes plugins
cd helm
goreleaser release --clean --skip-validate