version: 1 kind: platform-infra-pipelines-as-code metadata: id: pac-gitea-consumers owner: unidesk spec: GH-1552/GH-1555/GH-1560 relatedIssues: - 1552 - 1555 - 1557 - 1560 - 1649 - 1760 defaults: targetId: NC01 consumerId: hwlab-nc01-v03 display: timeZone: Asia/Shanghai release: version: v0.48.0 manifestUrl: https://github.com/openshift-pipelines/pipelines-as-code/releases/download/v0.48.0/release.k8s.yaml namespace: pipelines-as-code controllerServiceName: pipelines-as-code-controller controllerServicePort: 8080 waitTimeoutSeconds: 55 closeout: gitOpsMirrorFlush: enabled: true waitTimeoutSeconds: 55 maxAttempts: 5 targets: - id: JD01 route: JD01:k3s namespace: agentrun-ci role: active-cicd-trigger-authority enabled: true - id: NC01 route: NC01:k3s namespace: agentrun-ci role: active-cicd-trigger-authority enabled: true gitea: configRef: "config/platform-infra/gitea.yaml#sourceAuthority.repositories" internalBaseUrl: http://gitea-http.devops-infra.svc.cluster.local:3000 admin: sourceRoot: /root/.unidesk/.env sourceRef: gitea.auth format: line-pair usernameLine: 1 passwordLine: 2 apiUsername: unidesk-admin webhook: secretRoot: /root/.unidesk/.env secretSourceRef: pipelines-as-code.webhook events: - push branch: params.source_branch repositories: - extends: templates.repositories.agentrunV02 variables: NODE: JD01 LANE: v02 url: https://gitea.pikapython.com/mirrors/pikasTech-agentrun - extends: templates.repositories.agentrunV02 variables: NODE: NC01 LANE: v02 - extends: templates.repositories.sentinelV03 variables: NODE: JD01 LANE: v03 sourceSnapshotPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master url: https://gitea.pikapython.com/mirrors/pikasTech-unidesk - extends: templates.repositories.sentinelV03 variables: NODE: NC01 LANE: v03 sourceSnapshotPrefix: refs/unidesk/snapshots/gitea-actions/unidesk-master-nc01 params: unidesk_host_image_repository: 127.0.0.1:5000/unidesk/todo-note unidesk_host_registry_probe_base: http://127.0.0.1:5000 unidesk_host_gitops_branch: unidesk-host-gitops unidesk_host_gitops_manifest_path: deploy/gitops/unidesk-host/todo-note.yaml unidesk_host_runtime_namespace: unidesk unidesk_host_runtime_deployment: todo-note unidesk_host_runtime_service: todo-note unidesk_host_runtime_service_port: "4288" unidesk_host_health_path: /health unidesk_host_health_url: http://todo-note.unidesk.svc.cluster.local:4288/health - extends: templates.repositories.hwlabV03 variables: NODE: JD01 LANE: v03 url: https://gitea.pikapython.com/mirrors/pikasTech-HWLAB - extends: templates.repositories.hwlabV03 variables: NODE: NC01 LANE: v03 consumers: - extends: templates.consumers.agentrunV02 variables: NODE: JD01 LANE: v02 - extends: templates.consumers.agentrunV02 variables: NODE: NC01 LANE: v02 sourceArtifact: mode: embedded-pipeline-spec renderer: agentrun-control-plane configRef: config/agentrun.yaml#controlPlane.lanes.nc01-v02 pipelineRunPath: .tekton/agentrun-nc01-v02.yaml maxKeepRuns: 8 taskRunTemplate: hostNetwork: true dnsPolicy: ClusterFirstWithHostNet fsGroup: 1000 - extends: templates.consumers.sentinelV03 variables: NODE: JD01 LANE: v03 - extends: templates.consumers.sentinelV03 variables: NODE: NC01 LANE: v03 - id: unidesk-host repositoryRef: sentinel-nc01-v03 node: NC01 lane: host-k8s namespace: devops-infra pipeline: unidesk-host-pac pipelineRunPrefix: unidesk-host- argoNamespace: argocd argoApplication: unidesk-host closeoutGitOpsMirrorFlush: true closeoutGitOpsMirrorLane: v03 argoBootstrap: project: default repoUrl: http://git-mirror-http.devops-infra.svc.cluster.local:8080/pikasTech/unidesk.git targetRevision: unidesk-host-gitops path: deploy/gitops/unidesk-host destinationNamespace: unidesk automated: true - id: platform-infra-gitea-nc01 repositoryRef: sentinel-nc01-v03 node: NC01 lane: platform-infra namespace: devops-infra pipeline: platform-infra-gitea-nc01-pac pipelineRunPrefix: platform-infra-gitea-nc01- argoNamespace: argocd argoApplication: platform-infra-gitea-nc01 closeoutGitOpsMirrorFlush: false - extends: templates.consumers.hwlabV03 variables: NODE: JD01 LANE: v03 - extends: templates.consumers.hwlabV03 variables: NODE: NC01 LANE: v03 sourceArtifact: mode: remote-pipeline-annotation renderer: hwlab-runtime-lane configRef: config/hwlab-node-lanes.yaml#lanes.v03.targets.NC01 pipelinePath: ci/pipelines/hwlab-nc01-v03-ci-image-publish.yaml pipelineRunPath: .tekton/hwlab-nc01-v03-pac.yaml maxKeepRuns: 8 taskRunTemplate: hostNetwork: true dnsPolicy: ClusterFirstWithHostNet fsGroup: 1000 templates: repositories: agentrunV02: id: "agentrun-${nodeLower}-v02" name: "agentrun-${nodeLower}-v02" namespace: agentrun-ci providerType: gitea url: https://gitea.pikapython.com/mirrors/pikasTech-agentrun cloneUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-agentrun.git owner: mirrors repo: pikasTech-agentrun secretName: "pac-gitea-agentrun-${nodeLower}-v02" tokenKey: token webhookSecretKey: webhook.secret concurrencyLimit: 1 params: git_read_url: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-agentrun.git git_write_url: http://git-mirror-write.devops-infra.svc.cluster.local:8080/pikasTech/agentrun.git source_branch: v0.2 node: "${NODE}" gitops_branch: "${nodeLower}-v0.2-gitops" source_snapshot_prefix: refs/unidesk/snapshots/gitea-actions/agentrun-v0.2 pipeline_name: "agentrun-${nodeLower}-v02-ci-image-publish" pipeline_run_prefix: "agentrun-${nodeLower}-v02-ci" service_account: "agentrun-${nodeLower}-v02-tekton-runner" workspace_pvc_size: 2Gi sentinelV03: id: "sentinel-${nodeLower}-v03" name: "sentinel-${nodeLower}-v03" namespace: devops-infra providerType: gitea url: https://gitea.pikapython.com/mirrors/pikasTech-unidesk cloneUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-unidesk.git owner: mirrors repo: pikasTech-unidesk secretName: "pac-gitea-sentinel-${nodeLower}-v03" tokenKey: token webhookSecretKey: webhook.secret concurrencyLimit: 1 params: git_read_url: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-unidesk.git source_branch: master source_snapshot_prefix: "${sourceSnapshotPrefix}" node: "${NODE}" lane: v03 sentinel_id: "${nodeLower}-web-probe-sentinel" image_repository: "127.0.0.1:5000/hwlab/web-probe-sentinel-${nodeLower}" registry_probe_base: http://127.0.0.1:5000 gitops_branch: v0.3-gitops gitops_manifest_path: "deploy/gitops/node/${nodeLower}/web-probe-sentinel/web-probe-sentinel.yaml" pipeline_name: "hwlab-web-probe-sentinel-${nodeLower}-pac" pipeline_run_prefix: "hwlab-web-probe-sentinel-${nodeLower}" hwlabV03: id: "hwlab-${nodeLower}-v03" name: "hwlab-${nodeLower}-v03" namespace: hwlab-ci providerType: gitea url: https://gitea.pikapython.com/mirrors/pikasTech-HWLAB cloneUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-HWLAB.git owner: mirrors repo: pikasTech-HWLAB secretName: "pac-gitea-hwlab-${nodeLower}-v03" tokenKey: token webhookSecretKey: webhook.secret concurrencyLimit: 1 params: git_read_url: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-HWLAB.git git_write_url: http://git-mirror-write.devops-infra.svc.cluster.local:8080/pikasTech/HWLAB.git source_branch: v0.3 gitops_branch: v0.3-gitops source_snapshot_prefix: refs/unidesk/snapshots/gitea-actions/hwlab-node-runtime/v0.3 pipeline_name: "hwlab-${nodeLower}-v03-ci-image-publish" pipeline_run_prefix: "hwlab-${nodeLower}-v03-ci-poll" service_account: "hwlab-${nodeLower}-v03-tekton-runner" workspace_pvc_size: 8Gi git_ssh_secret: hwlab-git-ssh pipeline_timeout: 1h0m0s node: "${NODE}" lane: v03 runtime_namespace: hwlab-v03 consumers: agentrunV02: id: "agentrun-${nodeLower}-v02" repositoryRef: "agentrun-${nodeLower}-v02" node: "${NODE}" lane: "${nodeLower}-v02" namespace: agentrun-ci pipeline: "agentrun-${nodeLower}-v02-ci-image-publish" pipelineRunPrefix: "agentrun-${nodeLower}-v02-ci" argoNamespace: argocd argoApplication: "agentrun-${nodeLower}-v02" closeoutGitOpsMirrorFlush: true sentinelV03: id: "sentinel-${nodeLower}-v03" repositoryRef: "sentinel-${nodeLower}-v03" node: "${NODE}" lane: v03 namespace: devops-infra pipeline: "hwlab-web-probe-sentinel-${nodeLower}-pac" pipelineRunPrefix: "hwlab-web-probe-sentinel-${nodeLower}" argoNamespace: argocd argoApplication: "hwlab-web-probe-sentinel-${nodeLower}" closeoutGitOpsMirrorFlush: true closeoutGitOpsMirrorLane: v03 hwlabV03: id: "hwlab-${nodeLower}-v03" repositoryRef: "hwlab-${nodeLower}-v03" node: "${NODE}" lane: v03 namespace: hwlab-ci pipeline: "hwlab-${nodeLower}-v03-ci-image-publish" pipelineRunPrefix: "hwlab-${nodeLower}-v03-ci-poll" argoNamespace: argocd argoApplication: hwlab-node-v03 closeoutGitOpsMirrorFlush: true