-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.tests.yaml
More file actions
56 lines (50 loc) · 1.62 KB
/
Copy pathcloudbuild.tests.yaml
File metadata and controls
56 lines (50 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Testing empty arguments, should default to git status
- name: 'gcr.io/static-cloud-builders/sshpass-git'
volumes:
- name: 'ssh'
path: /root/.ssh
# Testing empty arguments with sshpass variable, should default to git status without sshpass
- name: 'gcr.io/static-cloud-builders/sshpass-git'
env: ['ssh_password=a_test_password']
volumes:
- name: 'ssh'
path: /root/.ssh
- name: 'gcr.io/static-cloud-builders/sshpass-git'
entrypoint: 'bash'
args:
- '-c'
- |
sshpass -p a_test_password ssh -xvvv git@github.com
volumes:
- name: 'ssh'
path: /root/.ssh
# Use standard git clone
#- name: 'gcr.io/cloud-builders/git'
#- name: 'gcr.io/static-cloud-builders/sshpass-git'
# args: ['clone', 'git@github.com:static-site-exploration/explore-static-example-site-distribution.git', '/workspace/test/a']
# volumes:
# - name: 'ssh'
# path: /root/.ssh
# Testing git clone with env to trigger sshpass
#- name: 'gcr.io/static-cloud-builders/sshpass-git'
# env: ['ssh_password=a_test_password']
# env: ['ssh_password=the_wrong_test_password']
# args: ['clone', 'git@github.com:static-site-exploration/explore-static-example-site-distribution.git', '/workspace/test/b']
# volumes:
# - name: 'ssh'
# path: /root/.ssh
# Simple ssh with sshpass test
#- name: 'gcr.io/static-cloud-builders/sshpass-git'
# entrypoint: 'bash'
# env: ['ssh_password=a_test_password']
# args: ['ssh', 'sshpass']
# volumes:
# - name: 'ssh'
# path: /root/.ssh
# Simple ssh without sshpass test
#- name: 'gcr.io/static-cloud-builders/sshpass-git'
# entrypoint: 'bash'
# args: ['ssh',]
# volumes:
# - name: 'ssh'
# path: /root/.ssh