#!/usr/bin/env sh set -e while read -r _ compose_version; do if [ -z "${compose_version}" ] then tag="latest" else tag="${compose_version%.*}" fi image=${DOCKER_REPO}:${tag} echo "# Pushing image ${image}..." docker image push "${image}" done < DOCKER_AND_COMPOSE_VERSION_MATRIX