16 lines
358 B
Bash
Executable file
16 lines
358 B
Bash
Executable file
#!/bin/bash
|
|
|
|
## Tag all the images with a datestamp
|
|
## and push them to dockerhub.
|
|
|
|
datestamp=$(date +%Y%m%d)
|
|
|
|
for i in $(grep '^ image:' docker-compose.yaml | cut -c12-)
|
|
do
|
|
echo
|
|
echo "======= $i ======="
|
|
basename=$(echo $i | cut -d: -f1)
|
|
echo docker tag $basename $basename:$datestamp
|
|
echo docker push $i
|
|
echo docker push $basename:$datestamp
|
|
done
|