Skip to content

Commit

Permalink
Merge pull request #1084 from RedHatInsights/revert-1083-add_versioni…
Browse files Browse the repository at this point in the history
…ng_step

Revert "added task that updates clowder version"
  • Loading branch information
adamrdrew authored Nov 26, 2024
2 parents 8095ef5 + 0d5f600 commit f8dd633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 73 deletions.
37 changes: 1 addition & 36 deletions .tekton/clowder-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,41 +177,6 @@ spec:
workspaces:
- name: basic-auth
workspace: git-auth
- name: update-clowder-version
params:
# New parameter to use the Trusted Artifact from the git-clone Task.
- name: SOURCE_ARTIFACT
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
runAfter:
- clone-repository
taskSpec:
params:
- description: The Trusted Artifact URI pointing to the artifact with the application source code.
name: SOURCE_ARTIFACT
type: string
stepTemplate:
volumeMounts:
- mountPath: /var/workdir
name: workdir
stepTemplate:
volumeMounts:
- mountPath: /var/workdir
name: workdir
steps:
# New step to fetch the Trusted Artifact and make it available to the next steps.
- name: use-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:81c4864dae6bb11595f657be887e205262e70086a05ed16ada827fd6391926ac
args:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
- name: kustomize-build
image: registry.access.redhat.com/ubi8/ubi:latest
workingDir: /var/workdir/source
script: set -xe && dnf install -y make && make update-version
volumes:
# New volume to store a copy of the source code accessible only to this Task.
- name: workdir
emptyDir: {}
- name: prefetch-dependencies
params:
- name: input
Expand All @@ -223,7 +188,7 @@ spec:
- name: ociArtifactExpiresAfter
value: $(params.image-expires-after)
runAfter:
- update-clowder-version
- clone-repository
taskRef:
params:
- name: name
Expand Down
39 changes: 2 additions & 37 deletions .tekton/clowder-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,41 +167,6 @@ spec:
workspaces:
- name: basic-auth
workspace: git-auth
- name: update-clowder-version
params:
# New parameter to use the Trusted Artifact from the git-clone Task.
- name: SOURCE_ARTIFACT
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
runAfter:
- clone-repository
taskSpec:
params:
- description: The Trusted Artifact URI pointing to the artifact with the application source code.
name: SOURCE_ARTIFACT
type: string
stepTemplate:
volumeMounts:
- mountPath: /var/workdir
name: workdir
stepTemplate:
volumeMounts:
- mountPath: /var/workdir
name: workdir
steps:
# New step to fetch the Trusted Artifact and make it available to the next steps.
- name: use-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:81c4864dae6bb11595f657be887e205262e70086a05ed16ada827fd6391926ac
args:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
- name: kustomize-build
image: registry.access.redhat.com/ubi8/ubi:latest
workingDir: /var/workdir/source
script: set -xe && dnf install -y make && make update-version
volumes:
# New volume to store a copy of the source code accessible only to this Task.
- name: workdir
emptyDir: {}
- name: prefetch-dependencies
params:
- name: input
Expand All @@ -213,7 +178,7 @@ spec:
- name: ociArtifactExpiresAfter
value: $(params.image-expires-after)
runAfter:
- update-clowder-version
- clone-repository
taskRef:
params:
- name: name
Expand Down Expand Up @@ -295,7 +260,7 @@ spec:
- name: kustomize-build
image: registry.access.redhat.com/ubi8/ubi:latest
workingDir: /var/workdir/source
script: make update-version
script: set -xe && dnf install -y go make && make test
volumes:
# New volume to store a copy of the source code accessible only to this Task.
- name: workdir
Expand Down

0 comments on commit f8dd633

Please sign in to comment.