Skip to content

Commit

Permalink
FIX: Add build script + update README.md with new tags
Browse files Browse the repository at this point in the history
  • Loading branch information
brettt89 committed Nov 15, 2017
1 parent c97ee6a commit 4a33ea2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4a33ea2

Please sign in to comment.