mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-01 17:17:57 +00:00
16 lines
350 B
Bash
Executable File
16 lines
350 B
Bash
Executable File
#!/bin/sh -e
|
|
TAGS="11 10 9.6 9.5 9.4"
|
|
|
|
git push --tags -f
|
|
for TAG in $TAGS; do
|
|
git reset --hard
|
|
sed -i "1 s,\$,:$TAG," Dockerfile-debian
|
|
sed -i "1 s,\$,-$TAG," Dockerfile-alpine
|
|
git commit -m "Tag $TAG" Dockerfile-*
|
|
git tag -f "$TAG"
|
|
# github events needs to push each tag separately
|
|
git push --tags -f
|
|
git reset HEAD^
|
|
done
|
|
git reset --hard
|