We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6599be commit 0915e08Copy full SHA for 0915e08
1 file changed
src/env.sh
@@ -253,6 +253,11 @@ _init() {
253
254
_tag() {
255
TARGET_TAG="$1"
256
+ if [ -z "$TARGET_TAG" ]; then
257
+ echo "docker-env: Missing tag argument" >&2
258
+ echo " Usage: ./docker/env.sh tag TARGET_TAG"
259
+ exit 1
260
+ fi
261
262
DEV_IMAGES="$({
263
docker image ls --format "{{.Repository}}:{{.Tag}}" \
@@ -266,6 +271,13 @@ _tag() {
266
271
done
267
272
}
268
273
274
+_push() {
275
+ docker image ls --format "{{.Repository}}" \
276
+ | grep "-env" \
277
+ | sort -u \
278
+ | xargs docker image push --all-tags
279
+}
280
+
269
281
COMMAND="${1:---help}"
270
282
if [ "$DOCKER_ENV" ]; then
283
case "$COMMAND" in
@@ -349,7 +361,7 @@ else
349
361
350
362
push)
351
363
shift
352
- _compose push "$@"
364
+ _push "$@"
353
365
;;
354
366
355
367
tag)
0 commit comments