Create travis dockerfile in the travis script step.
This allows having multiple Dockerfile-base-* files without also needing to add a separate Dockerfile-travis-* file due to the FROM line changing.
(cherry-picked from commit 3f67c2fbf0
)
This commit is contained in:
parent
5e4b5a56b2
commit
f4c221216b
2 changed files with 4 additions and 5 deletions
|
@ -1,5 +0,0 @@
|
|||
FROM wesnoth/wesnoth:1604-master
|
||||
|
||||
COPY ./ /home/wesnoth-travis/
|
||||
|
||||
WORKDIR /home/wesnoth-travis
|
|
@ -30,5 +30,9 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|||
export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
|
||||
fi
|
||||
else
|
||||
echo "FROM wesnoth/wesnoth:$LTS-$BRANCH" > docker/Dockerfile-travis-"$LTS"-"$BRANCH"
|
||||
echo "COPY ./ /home/wesnoth-travis/" >> docker/Dockerfile-travis-"$LTS"-"$BRANCH"
|
||||
echo "WORKDIR /home/wesnoth-travis" >> docker/Dockerfile-travis-"$LTS"-"$BRANCH"
|
||||
|
||||
docker build -t wesnoth-repo:"$LTS"-"$BRANCH" -f docker/Dockerfile-travis-"$LTS"-"$BRANCH" .
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue