mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 02:11:32 +00:00
Implement baseimage building of latest tag in bootstrap script
This commit is contained in:
parent
da665562aa
commit
25cedbd3d4
@ -18,7 +18,7 @@ trap cleanlog EXIT
|
||||
|
||||
: > $LOGFILE
|
||||
echo -n "Cloning TFW repositories... "
|
||||
[ ! -z "$TFWDEV" ] && echo -n "baseimage... " && git clone git@github.com:avatao-content/${BASEIMAGE}.git >> $LOGFILE 2>&1 || :
|
||||
echo -n "baseimage... " && git clone git@github.com:avatao-content/${BASEIMAGE}.git >> $LOGFILE 2>&1
|
||||
echo -n "frontend... " && git clone git@github.com:avatao-content/${FRONTEND}.git >> $LOGFILE 2>&1
|
||||
echo -n "test... " && git clone git@github.com:avatao-content/${TEST}.git >> $LOGFILE 2>&1
|
||||
echo "Done!"
|
||||
@ -40,6 +40,14 @@ if [ -z "$TFWDEV" ]; then
|
||||
sed -i "1 s/.*/&:${LATESTTAG}/" "${TEST}/solvable/Dockerfile"
|
||||
echo "Done!"
|
||||
|
||||
echo -n "Building baseimage... "
|
||||
cd "$BASEIMAGE"
|
||||
git checkout "$LATESTTAG" >> $LOGFILE 2>&1
|
||||
cd ..
|
||||
TFWTAG=$LATESTTAG ${TEST}/hack/tfw.sh buildtfw >> $LOGFILE 2>&1
|
||||
echo "Done!"
|
||||
|
||||
rm -rf "${BASEIMAGE}"
|
||||
rm -rf "${TEST}/.git"
|
||||
rm -rf "${FRONTEND}/.git"
|
||||
|
||||
|
@ -1 +1 @@
|
||||
URL=https://git.io/vxBfj SHA=a782b61bb9bbc28aaae174a0ed31aec35108a11068bc3f91ff33f43e29585ea7 bash -c 'cmd="$(curl -fsSL $URL)" && [ $(echo "$cmd" | sha256sum | cut -d " " -f1) == $SHA ] && echo "$cmd" | bash || echo Checksum mismatch!'
|
||||
URL=https://git.io/vxBfj SHA=d25b55064dcecaf76e09919bfaae4bc321ec3c4c5c8e868001973af024a41d68 bash -c 'cmd="$(curl -fsSL $URL)" && [ $(echo "$cmd" | sha256sum | cut -d " " -f1) == $SHA ] && echo "$cmd" | bash || echo Checksum mismatch!'
|
||||
|
Loading…
Reference in New Issue
Block a user