Skip to content
Snippets Groups Projects
Commit 88f366f6 authored by jurgenhaas's avatar jurgenhaas
Browse files

#20 Update all l3d components from within selfupdate

parent 27c8bbaa
No related branches found
Tags 1.9.0-rc2
No related merge requests found
......@@ -19,5 +19,14 @@ if [[ "$UPDATE" == *"setup:${NEWVERSION} not found"* ]]; then
fi
echo "Self update to versino ${NEWVERSION} succeeded!"
export VERSION=${NEWVERSION}
export PHP_VERSION=7.0
/usr/local/bin/update
export PHP_VERSION=7.1
/usr/local/bin/update
export PHP_VERSION=7.2
/usr/local/bin/update
echo "Cleaning old container"
docker kill l3drun >/dev/null
#!/bin/bash
if [[ -n ${PHP_VERSION} ]]; then
IMAGEID=$(docker image ls -q registry.lakedrops.com/docker/l3d/php-${PHP_VERSION}:${VERSION} | head -1)
if [[ ! -n ${IMAGEID} ]]; then
exit
fi
echo "Updating the image ..."
STATUS=$(docker pull registry.lakedrops.com/docker/l3d/php-${PHP_VERSION}:${VERSION})
if [[ "$STATUS" == *"Status: Image is up to date"* ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment