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

17 lines
329 B
Bash

#!/bin/sh -ex
. ci/container-common.sh
push() {
tag=$(tag_name "$1")
buildah push --creds "${BUILDAH_CREDS}" \
pythonctnr:$(tag_name ${BUILD_TAG}) \
git.pyrocufflink.net/containerimages/pythonctnr:${tag}
}
push ${BUILD_TAG}
push ${BRANCH_NAME}
if [ "${BRANCH_NAME}" = master ]; then
push latest
fi