Use a separate Docker image per LTS major version #1064

This commit is contained in:
Michael Snoyman 2015-12-30 13:08:34 +02:00
parent aa26462265
commit 1115520f3d
2 changed files with 13 additions and 1 deletions

View File

@ -50,7 +50,11 @@ Use [Ubuntu Package content search](http://packages.ubuntu.com/) to determine wh
### Upgrading GHC version
The Dockerfile contains information on which GHC versions should be used. You
can modify it and push it to Github to trigger a DockerHub build. The master
branch is used for nightlies, and the lts branch for LTS.
branch is used for nightlies. For LTSes, we use the ltsX branch, where X is the
major version number (e.g., lts3 for lts-3.\*).
Note that when starting a new LTS major release, you'll need to modify Docker
Hub to create a new Docker tag for the relevant branch name.
### Getting the new image to the build server
Once a new Docker image is available, you'll need to pull it onto the stackage-build server (see

View File

@ -4,7 +4,15 @@ set -eux
ROOT=$(cd $(dirname $0) ; pwd)
TARGET=$1
# For nightly-YYYY-MM-DD, tag should be nightly
# For lts-X.Y, tag should be ltsX
TAG=$(echo $TARGET | cut -d- -f 1)
if [ $TAG = "lts" ]
then
TAG=$(echo $TARGET | sed 's@^lts-\([0-9]*\)\.[0-9]*@lts\1@')
fi
IMAGE=snoyberg/stackage:$TAG
PLAN_FILE=current-plan.yaml