diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-01 03:13:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 03:13:28 +0200 |
commit | 54873c1f5e8fcdcbfe3b4b7e67ce2b489aa43577 (patch) | |
tree | c530b15562dbccb36bf6ebfc613338f295c2f8c7 | |
parent | 07413f2035a22e8766a723349b3a4a8ae17b8898 (diff) | |
parent | b25d62a4dbf39cf40c32d40fafc29774fb6a20fe (diff) | |
download | podman-54873c1f5e8fcdcbfe3b4b7e67ce2b489aa43577.tar.gz podman-54873c1f5e8fcdcbfe3b4b7e67ce2b489aa43577.tar.bz2 podman-54873c1f5e8fcdcbfe3b4b7e67ce2b489aa43577.zip |
Merge pull request #15572 from lsm5/disable-packit
[CI:BUILD] Packit: Disable until proved in other repos
-rw-r--r-- | .packit.sh | 27 | ||||
-rw-r--r-- | .packit.yaml | 20 |
2 files changed, 0 insertions, 47 deletions
diff --git a/.packit.sh b/.packit.sh deleted file mode 100644 index 7b404598a..000000000 --- a/.packit.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# Packit's default fix-spec-file often doesn't fetch version string correctly. -# This script handles any custom processing of the dist-git spec file and gets used by the -# fix-spec-file action in .packit.yaml - -set -eo pipefail - -# Get Version from HEAD -HEAD_VERSION=$(grep 'var Version = semver.MustParse' version/version.go | cut -d\" -f2 | sed -e 's/-/~/') - -# Generate source tarball -git archive --prefix=podman-$HEAD_VERSION/ -o podman-$HEAD_VERSION.tar.gz HEAD - -# RPM Spec modifications - -# Fix Version -sed -i "s/^Version:.*/Version: $HEAD_VERSION/" podman.spec - -# Fix Release -sed -i "s/^Release: %autorelease/Release: $PACKIT_RPMSPEC_RELEASE%{?dist}/" podman.spec - -# Fix Source0 -sed -i "s/^Source0:.*.tar.gz/Source0: %{name}-$HEAD_VERSION.tar.gz/" podman.spec - -# Fix autosetup -sed -i "s/^%autosetup.*/%autosetup -Sgit -n %{name}-$HEAD_VERSION/" podman.spec diff --git a/.packit.yaml b/.packit.yaml deleted file mode 100644 index ab284b2d5..000000000 --- a/.packit.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# See the documentation for more information: -# https://packit.dev/docs/configuration/ - -upstream_package_name: podman -downstream_package_name: podman - -actions: - post-upstream-clone: - - "curl -O https://src.fedoraproject.org/rpms/podman/raw/main/f/podman.spec" - fix-spec-file: - - bash .packit.sh - -jobs: - - job: production_build - trigger: pull_request - targets: &production_dist_targets - - fedora-36 - - fedora-37 - - fedora-rawhide - scratch: true |