
Previously, this was using a pre-defined pipeline that had to be loaded into the kubernetes context before this ran. Now, the pipeline is inlined with resolvers for the various tasks used from the catalog.
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
apiVersion: config.lighthouse.jenkins-x.io/v1alpha1
|
|
kind: TriggerConfig
|
|
spec:
|
|
postsubmits:
|
|
- name: semver
|
|
agent: tekton-pipeline
|
|
branches:
|
|
- ^main$
|
|
- ^master$
|
|
context: homepage
|
|
max_concurrency: 1
|
|
# Override https-based url from lighthouse events.
|
|
clone_uri: "git@code.fizz.buzz:talexander/homepage.git"
|
|
pipeline_run_spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: semver
|
|
namespace: lighthouse
|
|
workspaces:
|
|
- name: git-source
|
|
volumeClaimTemplate:
|
|
spec:
|
|
storageClassName: "nfs-client"
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
subPath: homepage-source
|
|
params: []
|
|
- name: build-homepage-staging
|
|
source: "pipeline-build-homepage-staging.yaml"
|
|
# Override https-based url from lighthouse events.
|
|
clone_uri: "git@code.fizz.buzz:talexander/homepage.git"
|
|
skip_branches:
|
|
# We already run on every commit, so running when the semver tags get pushed is causing needless double-processing.
|
|
- "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
|
|
- name: build-homepage
|
|
source: "pipeline-build-homepage.yaml"
|
|
# Override https-based url from lighthouse events.
|
|
clone_uri: "git@code.fizz.buzz:talexander/homepage.git"
|
|
branches:
|
|
- "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
|