Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from CentOS/appstudio-fedora-tier-1-eln
Browse files Browse the repository at this point in the history
Red Hat Trusted App Pipeline update fedora-tier-1-eln
  • Loading branch information
lmilbaum authored Nov 6, 2023
2 parents 24f105b + 6014091 commit efa3fcd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 96 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ jobs:

strategy:
matrix:
os: [centos, fedora]
tier: [tier-0, tier-1]
os: [fedora]
tier: [tier-1]
include:
- os: centos
version: stream9
- os: centos
variant: ""
- os: centos
variant: "-rt"
- os: fedora
version: eln

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/CentOS/sagano?rev={{revision}}
build.appstudio.openshift.io/repo: https://github.com/CentOS/centos-boot?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
Expand All @@ -11,19 +11,19 @@ metadata:
== "main"
creationTimestamp: null
labels:
appstudio.openshift.io/application: sagano
appstudio.openshift.io/component: centos-tier-0-stream9
appstudio.openshift.io/application: centos-boot
appstudio.openshift.io/component: fedora-tier-1-eln
pipelines.appstudio.openshift.io/type: build
name: centos-tier-0-stream9-on-pull-request
namespace: project-sagano-tenant
name: fedora-tier-1-eln-on-pull-request
namespace: centos-boot-tenant
spec:
params:
- name: image-file
value: centos-tier-0-stream9.yaml
value: fedora-tier-1-eln.yaml
- name: git-url
value: '{{repo_url}}'
- name: output-image
value: quay.io/redhat-user-workloads/project-sagano-tenant/sagano/centos-tier-0-stream9:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/centos-boot-tenant/centos-boot/fedora-tier-1-eln:on-pr-{{revision}}
- name: path-context
value: .
- name: revision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/CentOS/sagano?rev={{revision}}
build.appstudio.openshift.io/repo: https://github.com/CentOS/centos-boot?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "main"
creationTimestamp: null
labels:
appstudio.openshift.io/application: sagano
appstudio.openshift.io/component: centos-tier-0-stream9
appstudio.openshift.io/application: centos-boot
appstudio.openshift.io/component: fedora-tier-1-eln
pipelines.appstudio.openshift.io/type: build
name: centos-tier-0-stream9-on-push
namespace: project-sagano-tenant
name: fedora-tier-1-eln-on-push
namespace: centos-boot-tenant
spec:
params:
- name: dockerfile
value: Dockerfile
- name: git-url
value: '{{repo_url}}'
- name: output-image
value: quay.io/redhat-user-workloads/project-sagano-tenant/sagano/centos-tier-0-stream9:{{revision}}
- name: path-context
value: .
- name: revision
value: '{{revision}}'
- name: image-file
value: fedora-tier-1-eln.yaml
- name: git-url
value: '{{repo_url}}'
- name: output-image
value: quay.io/redhat-user-workloads/centos-boot-tenant/centos-boot/fedora-tier-1-eln:on-pr-{{revision}}
- name: path-context
value: .
- name: revision
value: '{{revision}}'
pipelineRef:
name: ostree-build
workspaces:
Expand Down
66 changes: 0 additions & 66 deletions .tekton/ostree-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,34 +191,6 @@ spec:
workspace: workspace-s390x
- name: basic-auth
workspace: git-auth
- name: clone-repository-ppc64le
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.revision)
runAfter:
- init
taskRef:
kind: Task
params:
- name: name
value: git-clone
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:d9e1ab10d72953e7a85dab69b8b96f5b41580a6d4026f77b6a5ba6f3ed227cc3
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
workspaces:
- name: output
workspace: workspace-ppc64le
- name: basic-auth
workspace: git-auth
- name: build-container-amd64
params:
- name: IMAGE
Expand Down Expand Up @@ -324,41 +296,6 @@ spec:
workspaces:
- name: source
workspace: workspace-s390x
- name: build-container-ppc64le
params:
- name: IMAGE
value: $(params.output-image)-ppc64le
- name: IMAGE_FILE
value: $(params.image-file)
- name: CONTEXT
value: $(params.path-context)
- name: IMAGE_EXPIRES_AFTER
value: $(params.image-expires-after)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
- name: PLATFORM
value: linux/ppc64le
- name: BUILDER_IMAGE
value: quay.io/centos-boot/builder:latest
runAfter:
- clone-repository-ppc64le
taskRef:
params:
- name: name
value: rpm-ostree
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-rpm-ostree:0.1@sha256:b7dbe76640d10cd7b7ff39573ad7f5ca7523237449e38447c9bdca0ec3e1f187
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace-s390x
- name: build-container
params:
- name: IMAGE
Expand All @@ -370,12 +307,10 @@ spec:
- $(tasks.build-container-amd64.results.IMAGE_URL)@$(tasks.build-container-amd64.results.IMAGE_DIGEST)
- $(tasks.build-container-arm64.results.IMAGE_URL)@$(tasks.build-container-arm64.results.IMAGE_DIGEST)
- $(tasks.build-container-s390x.results.IMAGE_URL)@$(tasks.build-container-s390x.results.IMAGE_DIGEST)
- $(tasks.build-container-ppc64le.results.IMAGE_URL)@$(tasks.build-container-ppc64le.results.IMAGE_DIGEST)
runAfter:
- build-container-amd64
- build-container-arm64
- build-container-s390x
- build-container-ppc64le
taskRef:
params:
- name: name
Expand Down Expand Up @@ -500,7 +435,6 @@ spec:
workspaces:
- name: workspace
- name: workspace-arm64
- name: workspace-ppc64le
- name: workspace-s390x
- name: git-auth
optional: true

0 comments on commit efa3fcd

Please sign in to comment.