Files
docker-phpbb/3.2-apache/hooks/post_push
2018-08-22 20:14:47 +03:00

13 lines
336 B
Bash
Executable File

#!/bin/bash
set -e
# Parse image name for repo name
tagStart=$(expr index "$IMAGE_NAME" :)
repoName=${IMAGE_NAME:0:tagStart-1}
# Tag and push image for each additional tag
for tag in {3,3.2,3.2.2,3-apache,3.2-apache,3.2.2-apache,apache,latest}; do
docker tag $IMAGE_NAME ${repoName}:${tag}
docker push ${repoName}:${tag}
done