Skip to content

Commit

Permalink
Run the new pipeline nightlies
Browse files Browse the repository at this point in the history
The new pipeline nightly builds will run using workspaces instead of
pipeline resources - once tektoncd/pipeline#3788
is merged.

Change the trigger template to be able to run the new format of the
pipeline.

Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
  • Loading branch information
afrittoli authored and tekton-robot committed Feb 25, 2021
1 parent b19b758 commit b21847b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 56 deletions.
5 changes: 4 additions & 1 deletion tekton/resources/nightly-release/base/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
description: The version tag to be applied to published images.
- name: imageRegistry
description: Registry where the images will be published to.
default: gcr.io/tekton-nightly
default: gcr.io
- name: imageRegistryPath
description: Registry project where the images will be published to.
default: tekton-nightly
- name: projectName
description: Name of the Tekton project to release (e.g. pipeline, triggers, etc).
73 changes: 18 additions & 55 deletions tekton/resources/nightly-release/overlays/pipeline/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,27 @@
generateName: pipeline-release-nightly-
spec:
pipelineRef:
name: pipeline-release-nightly
name: pipeline-release
params:
- name: package
value: $(tt.params.gitrepository)
- name: imageRegistry
value: gcr.io/tekton-nightly
value: $(tt.params.imageRegistry)
- name: imageRegistryPath
value: $(tt.params.imageRegistryPath)
- name: versionTag
value: $(tt.params.versionTag)
resources:
- name: source-repo
resourceSpec:
type: git
params:
- name: revision
value: $(tt.params.gitrevision)
- name: url
value: https://$(tt.params.gitrepository)
- name: bucket
resourceSpec:
type: storage
params:
- name: type
value: gcs
- name: location
value: gs://tekton-releases-nightly/$(tt.params.projectName)
- name: dir
value: "y"
secrets:
- fieldName: GOOGLE_APPLICATION_CREDENTIALS
secretKey: service-account.json
secretName: nightly-account
- name: builtBaseImage
resourceRef:
name: base-image
- name: builtEntrypointImage
resourceRef:
name: entrypoint-image
- name: builtNopImage
resourceRef:
name: nop-image
- name: builtKubeconfigWriterImage
resourceRef:
name: kubeconfigwriter-image
- name: builtGitInitImage
resourceRef:
name: git-init-image
- name: builtControllerImage
resourceRef:
name: controller-image
- name: builtWebhookImage
resourceRef:
name: webhook-image
- name: builtDigestExporterImage
resourceRef:
name: digest-exporter-image
- name: builtPullRequestInitImage
resourceRef:
name: pull-request-init-image
- name: notification
resourceRef:
name: post-nightly-release-trigger
- name: serviceAccountPath
value: release.json
workspaces:
- name: workarea
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: release-secret
secret:
secretName: release-secret

0 comments on commit b21847b

Please sign in to comment.