mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-06 03:17:29 +01:00
Use a separate Docker image per LTS major version #1064
This commit is contained in:
parent
aa26462265
commit
1115520f3d
@ -50,7 +50,11 @@ Use [Ubuntu Package content search](http://packages.ubuntu.com/) to determine wh
|
|||||||
### Upgrading GHC version
|
### Upgrading GHC version
|
||||||
The Dockerfile contains information on which GHC versions should be used. You
|
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
|
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
|
### 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
|
Once a new Docker image is available, you'll need to pull it onto the stackage-build server (see
|
||||||
|
|||||||
@ -4,7 +4,15 @@ set -eux
|
|||||||
|
|
||||||
ROOT=$(cd $(dirname $0) ; pwd)
|
ROOT=$(cd $(dirname $0) ; pwd)
|
||||||
TARGET=$1
|
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)
|
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
|
IMAGE=snoyberg/stackage:$TAG
|
||||||
|
|
||||||
PLAN_FILE=current-plan.yaml
|
PLAN_FILE=current-plan.yaml
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user