Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
stefwalter committed Mar 14, 2018
1 parent d2ad1b2 commit 2af354d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 13 deletions.
14 changes: 1 addition & 13 deletions oci-kvm-hook.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%global import_path %{provider_prefix}

Name: %{repo}
Version: 0.3
Version: 0
Release: 1%{?dist}
Summary: Golang binary to mount /dev/kvm into OCI containers
License: ASL 2.0
Expand Down Expand Up @@ -71,15 +71,3 @@ export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
%{_mandir}/man1/%{name}.1*

%changelog
* Fri Feb 02 2018 Stef Walter <[email protected]> - 0.3-1
- Lookup devices cgroup path of target process

* Thu Sep 21 2017 Stef Walter <[email protected]> - 0.2-2
- Updated for package review

* Wed Sep 20 2017 Stef Walter <[email protected]> - 0.2-1
- Copy /dev/kvm permissions from host
- Avoid nsenter --cgroup option for compatibility

* Wed Sep 20 2017 Stef Walter <[email protected]> - 0.1-1
- Initial release
29 changes: 29 additions & 0 deletions release-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a script run to release oci-kvm-hook through Cockpituous:
# https://github.com/cockpit-project/cockpituous

# 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

RELEASE_SOURCE="_release/source"
RELEASE_SPEC="oci-kvm-hook.spec"
RELEASE_SRPM="_release/srpm"

release_source() {
# cockpituous' release-source is aimed at ./autogen.sh/autotools style
# projects, so just build our own here
mkdir -p "$RELEASE_SOURCE"
git archive --prefix="oci-kvm-hook-$RELEASE_TAG/" "$RELEASE_TAG" > "$RELEASE_SOURCE/$RELEASE_TAG.tar.gz"
}

release_source
job release-srpm
job release-github
job release-koji master
job release-koji f26
job release-koji f27
job release-koji epel7
job release-bodhi F28
job release-bodhi F27
job release-bodhi EPEL7

0 comments on commit 2af354d

Please sign in to comment.