Skip to content

Commit

Permalink
Introduce pipeline parameter for tag suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
msugakov committed May 22, 2024
1 parent a5e6f0f commit f878602
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .tekton/collector-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
value: '13w'
- name: output-image-repo
value: quay.io/rhacs-eng/collector
- name: output-tag-suffix
value: '-latest'
- name: path-context
value: .
- name: revision
Expand Down Expand Up @@ -123,6 +125,9 @@ spec:
- description: Output Image Repository
name: output-image-repo
type: string
- description: Suffix appended to the tag of the output image
name: output-tag-suffix
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
Expand Down Expand Up @@ -294,7 +299,7 @@ spec:
- name: build-container
params:
- name: IMAGE
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)-latest
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)$(params.output-tag-suffix)
- name: DOCKERFILE
value: $(params.dockerfile)
- name: CONTEXT
Expand Down
7 changes: 6 additions & 1 deletion .tekton/collector-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
value: '13w'
- name: output-image-repo
value: quay.io/rhacs-eng/collector
- name: output-tag-suffix
value: '-latest'
- name: path-context
value: .
- name: revision
Expand Down Expand Up @@ -123,6 +125,9 @@ spec:
- description: Output Image Repository
name: output-image-repo
type: string
- description: Suffix appended to the tag of the output image
name: output-tag-suffix
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
Expand Down Expand Up @@ -294,7 +299,7 @@ spec:
- name: build-container
params:
- name: IMAGE
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)-latest
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)$(params.output-tag-suffix)
- name: DOCKERFILE
value: $(params.dockerfile)
- name: CONTEXT
Expand Down
7 changes: 6 additions & 1 deletion .tekton/collector-slim-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
value: '13w'
- name: output-image-repo
value: quay.io/rhacs-eng/collector
- name: output-tag-suffix
value: '-slim'
- name: path-context
value: .
- name: revision
Expand Down Expand Up @@ -123,6 +125,9 @@ spec:
- description: Output Image Repository
name: output-image-repo
type: string
- description: Suffix appended to the tag of the output image
name: output-tag-suffix
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
Expand Down Expand Up @@ -294,7 +299,7 @@ spec:
- name: build-container
params:
- name: IMAGE
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)-slim
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)$(params.output-tag-suffix)
- name: DOCKERFILE
value: $(params.dockerfile)
- name: CONTEXT
Expand Down
7 changes: 6 additions & 1 deletion .tekton/collector-slim-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
value: '13w'
- name: output-image-repo
value: quay.io/rhacs-eng/collector
- name: output-tag-suffix
value: '-slim'
- name: path-context
value: .
- name: revision
Expand Down Expand Up @@ -123,6 +125,9 @@ spec:
- description: Output Image Repository
name: output-image-repo
type: string
- description: Suffix appended to the tag of the output image
name: output-tag-suffix
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
Expand Down Expand Up @@ -294,7 +299,7 @@ spec:
- name: build-container
params:
- name: IMAGE
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)-slim
value: $(params.output-image-repo):$(tasks.determine-image-tag.results.image-tag)$(params.output-tag-suffix)
- name: DOCKERFILE
value: $(params.dockerfile)
- name: CONTEXT
Expand Down

0 comments on commit f878602

Please sign in to comment.