Give just build access to the git creds.

This commit is contained in:
James Pace 2024-01-04 18:17:01 -05:00
parent fc5dbc5d50
commit 63eff5d163
2 changed files with 9 additions and 0 deletions

View File

@ -5,11 +5,18 @@ metadata:
spec: spec:
workspaces: workspaces:
- name: source - name: source
- name: ssh-directory
steps: steps:
- image: harbor.internal.jpace121.net/k8s/limbo_builder:latest - image: harbor.internal.jpace121.net/k8s/limbo_builder:latest
script: | script: |
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex 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 source ~/.cargo/env
cd $(workspaces.source.path) cd $(workspaces.source.path)
just ci-build just ci-build

View File

@ -37,6 +37,8 @@ spec:
workspaces: workspaces:
- name: source - name: source
workspace: shared-data workspace: shared-data
- name: ssh-directory
workspace: git-credentials
taskRef: taskRef:
name: limbo-just-build name: limbo-just-build
finally: finally: