21 lines
387 B
Bash
21 lines
387 B
Bash
#!/bin/sh -ex
|
|
|
|
. ci/container-common.sh
|
|
|
|
push() {
|
|
tag=$(tag_name "$1")
|
|
podman push \
|
|
--creds="${PODMAN_AUTH}" \
|
|
hudctrl:$(tag_name ${BUILD_TAG}) \
|
|
git.pyrocufflink.blue/containerimages/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
|