23 lines
630 B
YAML
23 lines
630 B
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: limbo-just-build
|
|
spec:
|
|
workspaces:
|
|
- name: source
|
|
- name: ssh-directory
|
|
steps:
|
|
- image: harbor.internal.jpace121.net/k8s/limbo_builder:latest
|
|
script: |
|
|
#!/usr/bin/env bash
|
|
set -ex
|
|
# Set up ssh so we can pull private dependencies.
|
|
cp -r $(workspaces.ssh-directory.path) ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
chmod -R 400 ~/.ssh/*
|
|
ssh-keyscan -H -p 2222 git.jpace121.net >> ~/.ssh/known_hosts
|
|
# Use just to run the ci steps.
|
|
source ~/.cargo/env
|
|
cd $(workspaces.source.path)
|
|
just ci-build
|
|
just ci-test |