1
0
mirror of https://github.com/tmaier/docker-compose synced 2024-11-26 05:47:50 +01:00
github.com-tmaier-docker-co.../hooks/push
2018-04-29 18:03:24 +02:00

15 lines
301 B
Bash
Executable File

#!/usr/bin/env sh
set -e
docker image ls "${DOCKER_REPO}" --format "{{.Repository}}:{{.Tag}}"
images=$(docker image ls "${DOCKER_REPO}" --format "{{.Repository}}:{{.Tag}}");
for image in ${images};
do
echo "# Pushing image ${image}..."
docker image push "${image}"
echo "Exit code: $?"
done