Skip to content

Commit

Permalink
travis-ci: add -v0.11 prefix to -latest docker tag
Browse files Browse the repository at this point in the history
For builds on flux-core-v0.11 master, tag the docker images
as flux-core:${IMAGE}-v0.11-latest, so as not to overwrite
the flux-core unstable repo docker images.
  • Loading branch information
grondo committed Apr 18, 2019
1 parent b8748de commit ab5d84c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ env:
global:
- TAP_DRIVER_QUIET=1
- DOCKERREPO=fluxrm/flux-core
- DOCKER_STABLE_PREFIX=-v0.11
- DOCKER_USERNAME=travisflux
# travis encrypt -r flux-framework/flux-core-v0.11
# DOCKER_PASSWORD=xxxx
Expand Down Expand Up @@ -149,7 +150,7 @@ after_success:
docker push ${TAGNAME}
# If this is the bionic-base build, then also tag without image name:
if echo "$TAGNAME" | grep -q "bionic-base"; then
t="${DOCKERREPO}:${TRAVIS_TAG:-latest}"
t="${DOCKERREPO}:${TRAVIS_TAG:${DOCKER_STABLE_PREFIX}-latest}"
docker tag "$TAGNAME" ${t} && \
docker push ${t}
fi
Expand Down

0 comments on commit ab5d84c

Please sign in to comment.