File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,15 @@ if [ "${IMAGETAG}" != "skip" ] && [[ -z "${GITHUB_BASE_REF}" ]]; then
3535 echo " $DOCKER_PASS " | docker login -u " $DOCKER_USER " --password-stdin
3636 # Tag versioned image
3737 docker tag openstudio:latest ${DOCKER_REPO} :$IMAGETAG ; (( exit_status = exit_status || $? ))
38- # Always update latest
39- docker tag openstudio:latest ${DOCKER_REPO} :latest; (( exit_status = exit_status || $? ))
38+
39+ # Only update and push 'latest' if this is a stable release (no extension)
40+ if [ -z " ${OPENSTUDIO_VERSION_EXT} " ]; then
41+ echo " Stable release detected. Updating and pushing '${DOCKER_REPO} :latest'"
42+ docker tag openstudio:latest ${DOCKER_REPO} :latest; (( exit_status = exit_status || $? ))
43+ docker push ${DOCKER_REPO} :latest; (( exit_status = exit_status || $? ))
44+ else
45+ echo " Pre-release detected (extension: '${OPENSTUDIO_VERSION_EXT} '). Skipping 'latest' tag update."
46+ fi
4047
4148 # Push versioned tag
4249 docker push ${DOCKER_REPO} :$IMAGETAG ; (( exit_status = exit_status || $? ))
You can’t perform that action at this time.
0 commit comments