Skip to content

Commit

Permalink
Fix el6 and el7 builds in Packit (#556)
Browse files Browse the repository at this point in the history
* fix el6 and el7 builds in Packit

workaround for packit/packit-service#1601

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>

* packit: drop metadata field

it's no longer needed

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
  • Loading branch information
TomasTomecek authored Aug 5, 2022
1 parent 13a8262 commit 121fa76
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ srpm_build_deps: []
jobs:
- job: copr_build
trigger: pull_request
metadata:
owner: "@oamg"
project: convert2rhel
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
owner: "@oamg"
project: convert2rhel
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
actions:
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec
# workaround for https://github.com/packit/packit-service/issues/1601
fix-spec-file: []
- job: copr_build
trigger: commit
metadata:
branch: main
owner: "@oamg"
project: convert2rhel
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
branch: main
owner: "@oamg"
project: convert2rhel
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
actions:
# bump spec so we get release starting with 2 and hence all the default branch builds will
# have higher NVR than all the PR builds
Expand All @@ -37,12 +37,13 @@ jobs:
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec
# workaround for https://github.com/packit/packit-service/issues/1601
fix-spec-file: []
- job: tests
metadata:
targets:
epel-7-x86_64:
distros: [centos-7, oraclelinux-7]
epel-8-x86_64:
distros: [centos-8.4, centos-8, oraclelinux-8.4, oraclelinux-8.6]
use_internal_tf: True
targets:
epel-7-x86_64:
distros: [centos-7, oraclelinux-7]
epel-8-x86_64:
distros: [centos-8.4, centos-8, oraclelinux-8.4, oraclelinux-8.6]
use_internal_tf: True
trigger: pull_request

0 comments on commit 121fa76

Please sign in to comment.