-
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.
Separating resolve_remote_sources into a standalone cachito task in binary build, to allow us replacement with cachi2 in future. STONEBLD-2587 Signed-off-by: Martin Basti <[email protected]>
- Loading branch information
1 parent
7d301e1
commit 0b369b2
Showing
8 changed files
with
127 additions
and
7 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,46 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: binary-container-cachito-0-1 # dot is not allowed in the name | ||
spec: | ||
description: >- | ||
OSBS cachito 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 | ||
|
||
stepTemplate: | ||
env: | ||
- name: HOME | ||
value: $(workspaces.ws-home-dir.path) | ||
|
||
steps: | ||
- name: binary-container-cachito | ||
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-cachito |
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