17 lines
376 B
YAML
17 lines
376 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: rust
|
|
environment:
|
|
SECRET_INPUT:
|
|
from_secret: secret_input
|
|
commands:
|
|
- cargo build --verbose --all
|
|
- cargo test --verbose --all
|
|
# Simple test
|
|
- 'echo "Input: $SECRET_INPUT"'
|
|
- cargo run $SECRET_INPUT > output
|
|
- 'echo "Output: " && cat output' |