Support dapper for build process

This commit is contained in:
niusmallnan
2021-04-17 10:45:08 +08:00
parent 27d4ff21b5
commit 444300f537
14 changed files with 263 additions and 29 deletions

18
scripts/download Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
mkdir -p $(dirname $GIT_SOURCE)
pushd $(dirname $GIT_SOURCE)
git clone --depth=1 --branch ${GIT_BRANCH} https://github.com/niusmallnan/steve.git
cd steve
git reset --hard ${GIT_COMMIT}
mkdir -p pkg/ui/ui/dashboard
cd pkg/ui/ui/dashboard
curl -sL https://releases.rancher.com/dashboard/${CATTLE_DASHBOARD_UI_VERSION}.tar.gz | tar xvzf - --strip-components=2
cp index.html ../index.html
popd
$(dirname $0)/hack_fs $GIT_SOURCE/pkg/ui/ui/