-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init task contains plugins which are responsible for fetching data and validation. It split from prebuild task. Prebuild task compared to init task, does changes to dockerfile. This is prerequisite for having replacebale cachito task with cachi2 task in future, as this task has to be between init and prebuild. Parameter --platforms-result has been moved to init task from prebuild task, as init task now runs check_and_set_platforms plugin. STONEBLD-2587 Signed-off-by: Martin Basti <[email protected]>
- Loading branch information
1 parent
dd5a25b
commit 7d301e1
Showing
9 changed files
with
201 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: binary-container-init-0-1 # dot is not allowed in the name | ||
spec: | ||
description: >- | ||
OSBS init task for building binary container image | ||
params: | ||
- name: osbs-image | ||
description: The location of the OSBS builder image (FQDN pullspec) | ||
type: string | ||
- name: pipeline-run-name | ||
type: string | ||
description: PipelineRun name to reference current PipelineRun | ||
- name: user-params | ||
type: string | ||
description: User parameters in JSON format | ||
|
||
workspaces: | ||
- name: ws-build-dir | ||
- name: ws-context-dir | ||
- name: ws-home-dir | ||
- name: ws-registries-secret # access with $(workspaces.ws-registries-secret.path)/token | ||
- name: ws-koji-secret # access with $(workspaces.ws-koji-secret.path)/token | ||
- name: ws-reactor-config-map | ||
- name: ws-autobot-keytab | ||
|
||
results: | ||
- name: platforms_result | ||
|
||
stepTemplate: | ||
env: | ||
- name: HOME | ||
value: $(workspaces.ws-home-dir.path) | ||
|
||
steps: | ||
- name: binary-container-init | ||
image: $(params.osbs-image) | ||
workingDir: $(workspaces.ws-home-dir.path) | ||
resources: | ||
requests: | ||
memory: 512Mi | ||
cpu: 250m | ||
limits: | ||
memory: 1Gi | ||
cpu: 395m | ||
script: | | ||
set -x | ||
atomic-reactor -v task --user-params='$(params.user-params)' --build-dir=$(workspaces.ws-build-dir.path) --context-dir=$(workspaces.ws-context-dir.path) --config-file=$(workspaces.ws-reactor-config-map.path)/config.yaml --namespace=$(context.taskRun.namespace) --pipeline-run-name="$(params.pipeline-run-name)" binary-container-init --platforms-result=$(results.platforms_result.path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.