forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
375 B
15 lines
375 B
2 years ago
|
#!/bin/bash
|
||
|
# AUTOMATICALLY GENERATED
|
||
|
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||
|
|
||
|
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 {1.6.2.24}; do
|
||
|
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||
|
docker push ${repoName}:${tag}
|
||
|
done
|