Skip to content

Commit

Permalink
example/centos: split build pipeline
Browse files Browse the repository at this point in the history
This can probably share more later but for now split out the build
pipeline into one that needs tar and one that doesn't.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
  • Loading branch information
supakeen committed Sep 23, 2024
1 parent 2ab19bb commit aedf6eb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/centos/centos-9-aarch64-qcow2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ otk.include: "common/partition-table/aarch64.yaml"

otk.target.osbuild:
pipelines:
- otk.include: "pipeline/build.yaml"
- otk.include: "pipeline/build/generic.yaml"
- name: os
build: name:build
stages:
Expand Down
2 changes: 1 addition & 1 deletion example/centos/centos-9-x86_64-qcow2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ otk.include: "common/partition-table/x86_64.yaml"

otk.target.osbuild:
pipelines:
- otk.include: "pipeline/build.yaml"
- otk.include: "pipeline/build/generic.yaml"
- name: os
build: name:build
stages:
Expand Down
12 changes: 12 additions & 0 deletions example/centos/pipeline/build/generic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: build
runner: "org.osbuild.centos9"
stages:
- otk.external.osbuild-make-depsolve-dnf4-rpm-stage:
packageset: ${packages.build}
gpgkeys:
otk.include: "../../common/gpgkeys.yaml"
- type: org.osbuild.selinux
options:
file_contexts: etc/selinux/targeted/contexts/files/file_contexts
labels:
/usr/bin/cp: system_u:object_r:install_exec_t:s0
13 changes: 13 additions & 0 deletions example/centos/pipeline/build/tar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: build
runner: "org.osbuild.centos9"
stages:
- otk.external.osbuild-make-depsolve-dnf4-rpm-stage:
packageset: ${packages.build}
gpgkeys:
otk.include: "../../common/gpgkeys.yaml"
- type: org.osbuild.selinux
options:
file_contexts: etc/selinux/targeted/contexts/files/file_contexts
labels:
/usr/bin/cp: system_u:object_r:install_exec_t:s0
/usr/bin/tar: system_u:object_r:install_exec_t:s0

0 comments on commit aedf6eb

Please sign in to comment.