Use koji build directly instead of fedpkg build.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 11:50:40 +0000 (11:50 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 11:52:34 +0000 (11:52 +0000)
Allows us to specify an alternative koji --profile option in %koji.

Goalfile

index 19ed946..6d4ef07 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -103,7 +103,12 @@ goal rebuild (pkg) =
     fi
     fedpkg commit -c
     fedpkg push
-    fedpkg build
+    if [ %koji = "koji" ]; then
+        fedpkg build
+    else
+        hash=$(git rev-parse HEAD)
+        %koji build "git+https://src.fedoraproject.org/rpms/"%pkg".git#$hash" %side-tag
+    fi
 }
 
 # Get the source package names for a particular package.