#!/bin/sh -ex push() { tag=$(echo "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g' -e 's/^[.-]/_/') podman push hudctrl:${BUILD_TAG} registry.pyrocufflink.blue/hudctrl:${tag} } push ${BUILD_TAG} push ${BRANCH_NAME} if [ "${BRANCH_NAME}" = master ]; then push latest fi