Skip to content

Commit b81552e

Browse files
committed
added latest tag when pushing docker images
Signed-off-by: Sombrio <[email protected]>
1 parent 38f93c6 commit b81552e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

etc/DockerHelper.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ _push() {
123123

124124
if [[ "${dryRun}" != 1 ]]; then
125125
${DOCKER_CMD} push "${org}/flow-${os}-dev:${tag}"
126+
${DOCKER_CMD} tag "${org}/flow-${os}-dev:${tag}" "${org}/flow-${os}-dev:latest"
127+
${DOCKER_CMD} push "${org}/flow-${os}-dev:latest"
128+
else
129+
echo "[DRY-RUN] ${DOCKER_CMD} tag \"${org}/flow-${os}-dev:${tag}\" \"${org}/flow-${os}-dev:latest\""
130+
echo "[DRY-RUN] ${DOCKER_CMD} push \"${org}/flow-${os}-dev:latest\""
126131
fi
127132
fi
128133

@@ -138,8 +143,12 @@ _push() {
138143
${DOCKER_CMD} tag ${builderTag} ${orfsTag}
139144
if [[ "${dryRun}" == 1 ]]; then
140145
echo "[DRY-RUN] ${DOCKER_CMD} push ${orfsTag}"
146+
echo "[DRY-RUN] ${DOCKER_CMD} tag ${orfsTag} \"${org}/orfs:latest\""
147+
echo "[DRY-RUN] ${DOCKER_CMD} push \"${org}/orfs:latest\""
141148
else
142149
${DOCKER_CMD} push ${orfsTag}
150+
${DOCKER_CMD} tag ${orfsTag} "${org}/orfs:latest"
151+
${DOCKER_CMD} push "${org}/orfs:latest"
143152
fi
144153
fi
145154
}

0 commit comments

Comments
 (0)