Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 9b70d87

Browse files
fixed push script
1 parent c78fe92 commit 9b70d87

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

scripts/push.sh

+6-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ tag_and_push_all() {
3131
else
3232
TAG=$1
3333
fi
34-
for m in ./docker/*/; do
35-
REPO=${GROUP}/$(basename $m)
36-
if [[ "$COMMIT" != "$TAG" ]]; then
37-
docker tag ${REPO}:${COMMIT} ${REPO}:${TAG}
38-
fi
39-
push "$REPO:$TAG";
40-
done;
34+
35+
DOCKER_REPO=${GROUP}/${REPO}
36+
if [[ "$COMMIT" != "$TAG" ]]; then
37+
docker tag ${DOCKER_REPO}:${COMMIT} ${DOCKER_REPO}:${TAG}
38+
fi
39+
push "$DOCKER_REPO:$TAG";
4140
}
4241

4342
# Push snapshot when in master

0 commit comments

Comments
 (0)