Switch to using a unified pipeline for building the cargo test image and then using it.
This commit is contained in:
parent
a352699fdc
commit
6b91a4d1f9
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user