17 lines
329 B
Bash
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
|