-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nightly release for Results Component/Project
- Loading branch information
Showing
8 changed files
with
92 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ resources: | |
- pr-status-updater-nightly | ||
- concurrency-nightly | ||
- workflows-nightly | ||
- results-nightly |
2 changes: 2 additions & 0 deletions
2
tekton/cronjobs/dogfooding/releases/results-nightly/README.md
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,2 @@ | ||
Cron Job to trigger the Tekton Results nightly build. | ||
Results are published to https://storage.cloud.google.com/tekton-releases-nightly/results/latest/release.yaml |
21 changes: 21 additions & 0 deletions
21
tekton/cronjobs/dogfooding/releases/results-nightly/cronjob.yaml
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,21 @@ | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: nightly-cron-trigger | ||
spec: | ||
schedule: "0 5 * * *" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: trigger | ||
env: | ||
- name: PROJECT_NAME | ||
value: results | ||
initContainers: | ||
- name: git | ||
env: | ||
- name: GIT_REPO | ||
value: github.com/tektoncd/results |
5 changes: 5 additions & 0 deletions
5
tekton/cronjobs/dogfooding/releases/results-nightly/kustomization.yaml
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,5 @@ | ||
bases: | ||
- ../../../bases/release | ||
patchesStrategicMerge: | ||
- cronjob.yaml | ||
nameSuffix: "-results-nightly-release" |
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ resources: | |
- overlays/pr-status-updater | ||
- overlays/concurrency | ||
- overlays/workflows | ||
- overlays/results |
18 changes: 18 additions & 0 deletions
18
tekton/resources/nightly-release/overlays/results/kustomization.yaml
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,18 @@ | ||
namePrefix: results- | ||
bases: | ||
- ../../base | ||
patchesJson6902: | ||
- target: | ||
group: triggers.tekton.dev | ||
version: v1alpha1 | ||
kind: TriggerTemplate | ||
name: template | ||
path: template.yaml | ||
- target: | ||
group: triggers.tekton.dev | ||
version: v1alpha1 | ||
kind: Trigger | ||
name: nightly | ||
path: trigger.yaml | ||
resources: | ||
- github.com/tektoncd/results/release/?ref=main |
37 changes: 37 additions & 0 deletions
37
tekton/resources/nightly-release/overlays/results/template.yaml
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,37 @@ | ||
- op: add | ||
path: /spec/resourcetemplates | ||
value: | ||
- apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
generateName: results-release-nightly- | ||
spec: | ||
pipelineRef: | ||
name: results-release | ||
params: | ||
- name: package | ||
value: $(tt.params.gitrepository) | ||
- name: gitRevision | ||
value: $(tt.params.gitrevision) | ||
- name: imageRegistry | ||
value: $(tt.params.imageRegistry) | ||
- name: imageRegistryPath | ||
value: $(tt.params.imageRegistryPath) | ||
- name: versionTag | ||
value: $(tt.params.versionTag) | ||
- name: serviceAccountPath | ||
value: release.json | ||
- name: releaseBucket | ||
value: gs://tekton-releases-nightly/results | ||
workspaces: | ||
- name: ws | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
- name: release-secret | ||
secret: | ||
secretName: release-secret |
7 changes: 7 additions & 0 deletions
7
tekton/resources/nightly-release/overlays/results/trigger.yaml
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,7 @@ | ||
- op: add | ||
path: /spec/interceptors | ||
value: | ||
- cel: | ||
filter: >- | ||
'trigger-template' in body && | ||
body.params.release.projectName == 'results' |