Switch to using a unified pipeline for building the cargo test image and then using it.
semver Build semver has succeeded Details
cargo-fmt Build cargo-fmt has succeeded Details
build-cargo-fmt Build build-cargo-fmt has succeeded Details
organic-test Build organic-test has succeeded Details

This commit is contained in:
Tom Alexander 2023-07-13 20:08:09 -04:00
parent a352699fdc
commit 6b91a4d1f9
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 6 additions and 32 deletions

View File

@ -52,36 +52,6 @@ spec:
storage: 10Gi
subPath: rust-source
params: []
- name: organic-test
agent: tekton-pipeline
context: organic-test
max_concurrency: 1
# Override https-based url from lighthouse events.
clone_uri: "git@code.fizz.buzz:talexander/organic.git"
pipeline_run_spec:
serviceAccountName: build-bot
pipelineRef:
name: cargo-test-pipeline
namespace: lighthouse
workspaces:
- name: git-source
volumeClaimTemplate:
spec:
storageClassName: "nfs-client"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
subPath: rust-source
params:
- name: cargo-test-args
value:
- --lib
- --test
- test_loader
- name: cargo-image
value: harbor.fizz.buzz/private/organic-test
- name: build-cargo-fmt
agent: tekton-pipeline
branches:
@ -115,7 +85,7 @@ spec:
value: docker/cargo_fmt/
- name: path-to-dockerfile
value: docker/cargo_fmt/Dockerfile
- name: build-organic-test
- name: organic-test
agent: tekton-pipeline
branches:
- "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
@ -125,7 +95,7 @@ spec:
pipeline_run_spec:
serviceAccountName: build-bot
pipelineRef:
name: build-docker-pipeline
name: build-docker-and-run
namespace: lighthouse
workspaces:
- name: git-source
@ -148,3 +118,7 @@ spec:
value: docker/organic_test/
- name: path-to-dockerfile
value: docker/organic_test/Dockerfile
- name: command
value: [cargo, test]
- name: args
value: [--lib, --test, test_loader]