#!/usr/bin/env bash

set -e

if [ -z "${TRAVIS_TAG}" ]; then
  QUAY_TAG="${TRAVIS_COMMIT:0:7}"
else
  QUAY_TAG="${TRAVIS_TAG}"

  docker tag -f "quay.io/wikiwatershed/rwd:${TRAVIS_COMMIT:0:7}" "quay.io/wikiwatershed/rwd:${QUAY_TAG}"
fi

docker push "quay.io/wikiwatershed/rwd:${QUAY_TAG}"
docker tag -f "quay.io/wikiwatershed/rwd:${QUAY_TAG}" "quay.io/wikiwatershed/rwd:latest"
docker push "quay.io/wikiwatershed/rwd:latest"

#!/usr/bin/env bash

set -e

if [ -z "${TRAVIS_TAG}" ]; then
  QUAY_TAG="${TRAVIS_COMMIT:0:7}"
else
  QUAY_TAG="${TRAVIS_TAG}"

  docker tag "quay.io/wikiwatershed/rwd:${TRAVIS_COMMIT:0:7}" "quay.io/wikiwatershed/rwd:${QUAY_TAG}"
fi

docker push "quay.io/wikiwatershed/rwd:${QUAY_TAG}"
docker tag  "quay.io/wikiwatershed/rwd:${QUAY_TAG}" "quay.io/wikiwatershed/rwd:latest"
docker push "quay.io/wikiwatershed/rwd:latest"

Remove deprecated -f flag from docker tag
Remove deprecated -f flag from docker tag

The argument has been removed and it is now the default behavior.  This
was preventing tavis from deploying new quay images

https://docs.docker.com/engine/deprecated/#/f-flag-on-docker-tag
