update build script to always push dev version of successful build

This commit is contained in:
Francisco Schulz 2023-02-01 17:22:11 +01:00
parent a989134f2d
commit cde8404588

View File

@ -2,7 +2,7 @@
set -e
SERVICE_NAME=$1
project_name="image-prediction"
project_name="red"
HOST="nexus.iqser.com"
PORT="5001"
@ -84,6 +84,7 @@ else
echo "${bamboo_nexus_password}" | docker login --username "${bamboo_nexus_user}" --password-stdin ${HOST}:${PORT}
docker build \
--build-arg SSH_KEY="$(cat ~/.ssh/id_rsa)" -f Dockerfile .
docker push ${HOST}:${PORT}/${project_name}/$SERVICE_NAME:dev
exit 0
fi