mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix installation of developer system (wrong package-version) and some tags
This commit is contained in:
parent
9101e7736f
commit
c58601d830
@ -21,6 +21,10 @@ BRANCH=$(echo $VERSION|sed 's/\.[0-9]\{8\}$//')
|
|||||||
[ $BRANCH != "master" ] && {
|
[ $BRANCH != "master" ] && {
|
||||||
TAG=$BRANCH-$TAG
|
TAG=$BRANCH-$TAG
|
||||||
}
|
}
|
||||||
|
[ $BRANCH = "master" ] && {
|
||||||
|
TAG=master
|
||||||
|
VERSION=dev-master
|
||||||
|
}
|
||||||
echo -e "\nbuilding $REPO/$IMAGE:$TAG\n"
|
echo -e "\nbuilding $REPO/$IMAGE:$TAG\n"
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
@ -30,7 +34,7 @@ docker build --build-arg "VERSION=$VERSION" --build-arg="PHP_VERSION=$PHP_VERSIO
|
|||||||
docker push $REPO/$IMAGE:$TAG
|
docker push $REPO/$IMAGE:$TAG
|
||||||
|
|
||||||
# tag by major PHP version eg. 7.3
|
# tag by major PHP version eg. 7.3
|
||||||
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:PHP_VESION
|
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:$PHP_VERSION
|
||||||
docker push $REPO/$IMAGE:$PHP_VERSION
|
docker push $REPO/$IMAGE:$PHP_VERSION
|
||||||
|
|
||||||
# tag only recommended PHP version as latest and $BRANCH (eg. master)
|
# tag only recommended PHP version as latest and $BRANCH (eg. master)
|
||||||
@ -38,6 +42,6 @@ docker build --build-arg "VERSION=$VERSION" --build-arg="PHP_VERSION=$PHP_VERSIO
|
|||||||
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:latest
|
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:latest
|
||||||
docker push $REPO/$IMAGE:latest
|
docker push $REPO/$IMAGE:latest
|
||||||
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:$BRANCH
|
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:$BRANCH
|
||||||
docker push $REPO/$IMAGE:$BANCH
|
docker push $REPO/$IMAGE:$BRANCH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user