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

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

View File

@ -52,36 +52,6 @@ spec:
storage: 10Gi storage: 10Gi
subPath: rust-source subPath: rust-source
params: [] 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 - name: build-cargo-fmt
agent: tekton-pipeline agent: tekton-pipeline
branches: branches:
@ -115,7 +85,7 @@ spec:
value: docker/cargo_fmt/ value: docker/cargo_fmt/
- name: path-to-dockerfile - name: path-to-dockerfile
value: docker/cargo_fmt/Dockerfile value: docker/cargo_fmt/Dockerfile
- name: build-organic-test - name: organic-test
agent: tekton-pipeline agent: tekton-pipeline
branches: branches:
- "^v[0-9]+\\.[0-9]+\\.[0-9]+$" - "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
@ -125,7 +95,7 @@ spec:
pipeline_run_spec: pipeline_run_spec:
serviceAccountName: build-bot serviceAccountName: build-bot
pipelineRef: pipelineRef:
name: build-docker-pipeline name: build-docker-and-run
namespace: lighthouse namespace: lighthouse
workspaces: workspaces:
- name: git-source - name: git-source
@ -148,3 +118,7 @@ spec:
value: docker/organic_test/ value: docker/organic_test/
- name: path-to-dockerfile - name: path-to-dockerfile
value: docker/organic_test/Dockerfile value: docker/organic_test/Dockerfile
- name: command
value: [cargo, test]
- name: args
value: [--lib, --test, test_loader]