Add the actual git clone command, and change the status container
slightly.
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -9,6 +9,8 @@ data: | ... | @@ -9,6 +9,8 @@ data: |
9 | #!/bin/sh | 9 | #!/bin/sh |
10 | set -ex | 10 | set -ex |
11 | GIT_SSH_COMMAND="ssh -i /tmp/cluster-ssh/ssh-private-key" | 11 | GIT_SSH_COMMAND="ssh -i /tmp/cluster-ssh/ssh-private-key" |
12 | # FIXME: don't hard-code this. | ||
13 | git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day | ||
12 | --- | 14 | --- |
13 | apiVersion: batch/v1 | 15 | apiVersion: batch/v1 |
14 | kind: Job | 16 | kind: Job |
... | @@ -55,7 +57,7 @@ spec: | ... | @@ -55,7 +57,7 @@ spec: |
55 | containers: | 57 | containers: |
56 | - name: show-status | 58 | - name: show-status |
57 | image: bash | 59 | image: bash |
58 | command: ["bash", "-ex", "ls -l /tmp/git-storage"] | 60 | command: ["bash", "-ex", "ls -al /tmp"] |
59 | volumeMounts: | 61 | volumeMounts: |
60 | - name: git-storage | 62 | - name: git-storage |
61 | mountPath: /tmp/git-storage | 63 | mountPath: /tmp/git-storage | ... | ... |
-
Please register or sign in to post a comment