File: make_release.sh

package info (click to toggle)
podman-compose 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: python: 10,946; sh: 107; javascript: 48; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e

if [ $# -ne 1 ]; then
    echo "Usage: make_release.sh VERSION"
    exit 1
fi

VERSION=$1

sed "s/__version__ = .*/__version__ = \"$VERSION\"/g" -i podman_compose.py
git add podman_compose.py
git commit -m "Release $VERSION"

git tag "v$VERSION" -m "v$VERSION" -s

git push ssh://github.com/containers/podman-compose main "v$VERSION"