2016-09-13 18:37:25 +03:00
|
|
|
#!/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
|
2017-02-06 17:57:15 +03:00
|
|
|
for tag in {3.1,3.1-apache}; do
|
2016-09-13 18:37:25 +03:00
|
|
|
docker tag $IMAGE_NAME ${repoName}:${tag}
|
|
|
|
|
docker push ${repoName}:${tag}
|
|
|
|
|
done
|