mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 02:21:31 +00:00
Build TFW for framework developers and reorder building process
This commit is contained in:
parent
b5156d437b
commit
9f2f5f8bfb
@ -27,11 +27,11 @@ run()
|
||||
|
||||
check_dependencies
|
||||
clone_repos_ask_ssh_or_https
|
||||
TAG="$(fetch_latest_tag)"
|
||||
TAG=$TAG pin_latest_baseimage
|
||||
TAG=$TAG build_latest_baseimage
|
||||
install_frontend_deps
|
||||
if [ "$TFWDEV" == "0" ]; then
|
||||
LATESTTAG="$(fetch_latest_tag)"
|
||||
LATESTTAG=$LATESTTAG pin_latest_baseimage
|
||||
LATESTTAG=$LATESTTAG build_latest_baseimage
|
||||
cleanup_repos
|
||||
merge_repos
|
||||
fi
|
||||
@ -123,18 +123,18 @@ fetch_latest_tag()
|
||||
pin_latest_baseimage()
|
||||
{
|
||||
echo -n "Pinning latest TFW baseimage version... "
|
||||
echo -n "which is ${LATESTTAG}... "
|
||||
sed -i "1 s/.*/&:${LATESTTAG}/" "${TEST}/solvable/Dockerfile"
|
||||
echo -n "which is ${TAG}... "
|
||||
sed -i "1 s/.*/&:${TAG}/" "${TEST}/solvable/Dockerfile"
|
||||
echo "Done!"
|
||||
}
|
||||
|
||||
build_latest_baseimage()
|
||||
{
|
||||
echo -n "Building baseimage at ${LATESTTAG}... "
|
||||
echo -n "Building baseimage at ${TAG}... "
|
||||
pushd "$BASEIMAGE"
|
||||
spinned logged git checkout "$LATESTTAG"
|
||||
spinned logged git checkout "$TAG"
|
||||
popd
|
||||
TFWTAG=$LATESTTAG spinned logged ${TEST}/hack/tfw.sh buildtfw
|
||||
TFWTAG=$TAG spinned logged ${TEST}/hack/tfw.sh buildtfw
|
||||
echo "Done!"
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
URL=https://git.io/vxBfj SHA=e16ddb440c0097521739067dd21312eadcb3a008e6982aaa1a052fe5ed35b1bc 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=237d0cce945574208784a21fa6c6fbb4f479e5ce60b1518b1fcc921d675d2861 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