diff --git a/README.md b/README.md index 0a1eb77..182a899 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ - [`7.1-platform`, `7.1-ssp` (*7.1/platform/Dockerfile*)](https://github.com/brettt89/silverstripe-web/blob/master/7.1/platform/Dockerfile) - [`7.1-alpine` (*7.1/alpine/Dockerfile*)](https://github.com/brettt89/silverstripe-web/blob/master/7.1/alpine/Dockerfile) - - [`5.6-platform`, `5.6-ssp`, `latest` (*5.6/platform/Dockerfile*)](https://github.com/brettt89/silverstripe-web/blob/master/5.6/platform/Dockerfile) - - [`5.6-alpine` (*5.6/alpine/Dockerfile*)](https://github.com/brettt89/silverstripe-web/blob/master/5.6/alpine/Dockerfile) + - [`5.6-platform`, `5.6-ssp`, `latest`, `platform` (*5.6/platform/Dockerfile*)](https://github.com/brettt89/silverstripe-web/blob/master/5.6/platform/Dockerfile) + - [`5.6-alpine`, `alpine` (*5.6/alpine/Dockerfile*)](https://github.com/brettt89/silverstripe-web/blob/master/5.6/alpine/Dockerfile) [Travis CI: ![Build Status](https://travis-ci.org/brettt89/silverstripe-web.svg?branch=master)](https://travis-ci.org/brettt89/silverstripe-web) diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..cbc9015 --- /dev/null +++ b/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +declare -a platforms=("alpine" "platform") +declare -a phpVersions=("7.1" "5.6") + +for platform in "${platforms[@]}" +do + for version in "${phpVersions[@]}" + do + echo "### Building brettt89/silverstripe-web:${version}-${platform} ###" + docker build -t "brettt89/silverstripe-web:${version}-${platform}" "${version}/${platform}" + done + echo "### Building brettt89/silverstripe-web:${platform}" + docker build -t "brettt89/silverstripe-web:${platform}" "5.6/${platform}" +done + +## Force 5.6/platform to be latest build +echo "### Building brettt89/silverstripe-web:latest" +docker build -t "brettt89/silverstripe-web:latest" "5.6/platform" \ No newline at end of file