# This is a script run to release cockpit-podman through Cockpituous:
# https://github.com/cockpit-project/cockpituous/tree/master/release

# Anything that start with 'job' may run in a way that it SIGSTOP's
# itself when preliminary preparition and then gets a SIGCONT in
# order to complete its work.
#
# Check cockpituous documentation for available release targets.

RELEASE_SOURCE="_release/source"
RELEASE_SPEC="cockpit-podman.spec"
RELEASE_SRPM="_release/srpm"

job release-source
job release-srpm -V

# Authenticate for pushing into Fedora dist-git (works in Cockpituous release container)
cat ~/.fedora-password | kinit cockpit@FEDORAPROJECT.ORG
# Do fedora builds for the tag, using tarball
job release-koji master
job release-koji f29
job release-koji f30
job release-bodhi F29
job release-bodhi F30

# These are likely the first of your release targets; but run them after Fedora uploads,
# so that failures there will fail the release early, before publishing on GitHub

job release-github
job release-copr @cockpit/cockpit-podman
