Skip to content

Commit cf41b00

Browse files
authored
CMP-3756: Configure RPM lock file (master) (#888)
* Update repo file Update and fix repo.file. * Fix: Build operator image when lock file changes The pipeline was not starting when the lock file was updated.
1 parent b85849e commit cf41b00

File tree

3 files changed

+62
-14
lines changed

3 files changed

+62
-14
lines changed

.tekton/compliance-operator-dev-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/cancel-in-progress: "true"
1010
pipelinesascode.tekton.dev/max-keep-runs: "3"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "master" && ( ".tekton/compliance-operator-dev-*.yaml".pathChanged() || "main.go".pathChanged() || "tools.go".pathChanged() || "pkg/**/*.go".pathChanged() || "cmd/**/*.go".pathChanged() || "version/***".pathChanged() || "config/***".pathChanged() || "*Makefile*".pathChanged() || "vendor/***".pathChanged() || "tests/***".pathChanged() || "LICENSE".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "master" && ( ".tekton/compliance-operator-dev-*.yaml".pathChanged() || "images/operator/***".pathChanged() || "images/redhat.repo".pathChanged() || "main.go".pathChanged() || "tools.go".pathChanged() || "pkg/**/*.go".pathChanged() || "cmd/**/*.go".pathChanged() || "version/***".pathChanged() || "config/***".pathChanged() || "*Makefile*".pathChanged() || "vendor/***".pathChanged() || "tests/***".pathChanged() || "LICENSE".pathChanged() )
1212
creationTimestamp:
1313
labels:
1414
appstudio.openshift.io/application: compliance-operator-dev

.tekton/compliance-operator-dev-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/cancel-in-progress: "false"
1010
pipelinesascode.tekton.dev/max-keep-runs: "3"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master" && ( ".tekton/compliance-operator-dev-*.yaml".pathChanged() || "main.go".pathChanged() || "tools.go".pathChanged() || "pkg/**/*.go".pathChanged() || "cmd/**/*.go".pathChanged() || "version/***".pathChanged() || "config/***".pathChanged() || "*Makefile*".pathChanged() || "vendor/***".pathChanged() || "tests/***".pathChanged() || "LICENSE".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master" && ( ".tekton/compliance-operator-dev-*.yaml".pathChanged() || "images/operator/***".pathChanged() || "images/redhat.repo".pathChanged() || "main.go".pathChanged() || "tools.go".pathChanged() || "pkg/**/*.go".pathChanged() || "cmd/**/*.go".pathChanged() || "version/***".pathChanged() || "config/***".pathChanged() || "*Makefile*".pathChanged() || "vendor/***".pathChanged() || "tests/***".pathChanged() || "LICENSE".pathChanged() )
1212
creationTimestamp:
1313
labels:
1414
appstudio.openshift.io/application: compliance-operator-dev

images/redhat.repo

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,83 @@
1-
[rhocp-4.16-for-rhel-9-$basearch-rpms]
2-
name = Red Hat OpenShift Container Platform 4.16 for RHEL 9 $basearch (RPMs)
3-
baseurl = https://cdn.redhat.com/content/dist/layered/rhel9/$basearch/rhocp/4.16/os
1+
[rhocp-4.20-for-rhel-9-$basearch-rpms]
2+
name = Red Hat OpenShift Container Platform 4.20 for RHEL 9 for $basearch (RPMs)
3+
baseurl = https://cdn.redhat.com/content/dist/layered/rhel9/$basearch/rhocp/4.20/os
44
enabled = 1
55
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
66
gpgcheck = 1
7+
sslverify = 1
8+
sslcacert = /etc/rhsm/ca/redhat-uep.pem
79
sslclientkey = $SSL_CLIENT_KEY
810
sslclientcert = $SSL_CLIENT_CERT
11+
sslverifystatus = 1
12+
metadata_expire = 86400
13+
enabled_metadata = 0
914

10-
[ubi-9-for-$basearch-baseos-rpms]
11-
name = Red Hat Universal Base Image 9 (RPMs) - BaseOS
12-
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/os
15+
[rhocp-4.20-for-rhel-9-$basearch-source-rpms]
16+
name = Red Hat OpenShift Container Platform 4.20 for RHEL 9 for $basearch (Source RPMs)
17+
baseurl = https://cdn.redhat.com/content/dist/layered/rhel9/$basearch/rhocp/4.20/source/SRPMS
1318
enabled = 1
1419
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
1520
gpgcheck = 1
21+
sslverify = 1
22+
sslcacert = /etc/rhsm/ca/redhat-uep.pem
1623
sslclientkey = $SSL_CLIENT_KEY
1724
sslclientcert = $SSL_CLIENT_CERT
25+
sslverifystatus = 1
26+
metadata_expire = 86400
27+
enabled_metadata = 0
1828

19-
[ubi-9-for-$basearch-appstream-rpms]
20-
name = Red Hat Universal Base Image 9 (RPMs) - AppStream
21-
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/os
29+
[rhel-9-for-$basearch-baseos-rpms]
30+
name = Red Hat Enterprise Linux 9 - BaseOS (RPMs)
31+
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/$basearch/baseos/os
2232
enabled = 1
2333
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2434
gpgcheck = 1
35+
sslverify = 1
36+
sslcacert = /etc/rhsm/ca/redhat-uep.pem
2537
sslclientkey = $SSL_CLIENT_KEY
2638
sslclientcert = $SSL_CLIENT_CERT
39+
sslverifystatus = 1
40+
metadata_expire = 86400
41+
enabled_metadata = 0
2742

28-
[codeready-builder-for-ubi-9-$basearch-rpms]
29-
name = Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder
30-
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os
43+
[rhel-9-for-$basearch-baseos-source-rpms]
44+
name = Red Hat Enterprise Linux 9 - BaseOS (Source RPMs)
45+
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/$basearch/baseos/source/SRPMS
3146
enabled = 1
3247
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
3348
gpgcheck = 1
49+
sslverify = 1
50+
sslcacert = /etc/rhsm/ca/redhat-uep.pem
3451
sslclientkey = $SSL_CLIENT_KEY
3552
sslclientcert = $SSL_CLIENT_CERT
53+
sslverifystatus = 1
54+
metadata_expire = 86400
55+
enabled_metadata = 0
56+
57+
[rhel-9-for-$basearch-appstream-rpms]
58+
name = Red Hat Enterprise Linux 9 - AppStream (RPMs)
59+
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/$basearch/appstream/os
60+
enabled = 1
61+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
62+
gpgcheck = 1
63+
sslverify = 1
64+
sslcacert = /etc/rhsm/ca/redhat-uep.pem
65+
sslclientkey = $SSL_CLIENT_KEY
66+
sslclientcert = $SSL_CLIENT_CERT
67+
sslverifystatus = 1
68+
metadata_expire = 86400
69+
enabled_metadata = 0
70+
71+
[rhel-9-for-$basearch-appstream-source-rpms]
72+
name = Red Hat Enterprise Linux 9 - AppStream (Source RPMs)
73+
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/$basearch/appstream/source/SRPMS
74+
enabled = 1
75+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
76+
gpgcheck = 1
77+
sslverify = 1
78+
sslcacert = /etc/rhsm/ca/redhat-uep.pem
79+
sslclientkey = $SSL_CLIENT_KEY
80+
sslclientcert = $SSL_CLIENT_CERT
81+
sslverifystatus = 1
82+
metadata_expire = 86400
83+
enabled_metadata = 0

0 commit comments

Comments
 (0)