| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [ $# -ne 1 ]; then |
| 6 | echo "Usage: make_release.sh VERSION" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | VERSION=$1 |
| 11 | |
| 12 | sed "s/__version__ = .*/__version__ = \"$VERSION\"/g" -i podman_compose.py |
| 13 | git add podman_compose.py |
| 14 | git commit -m "Release $VERSION" |
| 15 | |
| 16 | git tag "v$VERSION" -m "v$VERSION" -s |
| 17 | |
| 18 | git push ssh://github.com/containers/podman-compose main "v$VERSION" |