1
0
Fork 0
hudctrl/ci/publish-container.sh

18 lines
321 B
Bash

#!/bin/sh -ex
. ci/container-common.sh
push() {
tag=$(tag_name "$1")
podman push hudctrl:$(tag_name ${BUILD_TAG}) registry.pyrocufflink.blue/hudctrl:${tag}
}
push ${BUILD_TAG}
push ${BRANCH_NAME}
if [ "${BRANCH_NAME}" = master ]; then
push latest
fi
if [ -n "${TAG_NAME}" ]; then
push "${TAG_NAME}"
fi