Skip to content

Commit 1626073

Browse files
committed
[tests] migrate to use common tf-run-example image
1 parent eef0440 commit 1626073

File tree

6 files changed

+42
-189
lines changed

6 files changed

+42
-189
lines changed

tests/pipelines/tf-examples-gke-k8s-helm.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,20 @@ jobs:
6363
params:
6464
subject: email/subject-failed
6565
body: email/body-failed
66-
file: git/tests/tasks/run-example.yaml
66+
config:
67+
platform: linux
68+
image_resource:
69+
type: docker-image
70+
source:
71+
repository: gcr.io/cloud-solutions-group/tf-run-example
72+
tag: latest
73+
inputs:
74+
- name: git
75+
- name: git-pull-requests
76+
optional: true
77+
outputs:
78+
- name: email
79+
run: {path: /opt/run-example.sh}
6780

6881
###
6982
# Resource types

tests/pipelines/tf-examples-gke-multi-region.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,20 @@ jobs:
4747
params:
4848
subject: email/subject-failed
4949
body: email/body-failed
50-
file: git/tests/tasks/run-example.yaml
50+
config:
51+
platform: linux
52+
image_resource:
53+
type: docker-image
54+
source:
55+
repository: gcr.io/cloud-solutions-group/tf-run-example
56+
tag: latest
57+
inputs:
58+
- name: git
59+
- name: git-pull-requests
60+
optional: true
61+
outputs:
62+
- name: email
63+
run: {path: /opt/run-example.sh}
5164

5265
###
5366
# Resource types

tests/pipelines/tf-examples-gke-service-lb.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,20 @@ jobs:
4545
params:
4646
subject: email/subject-failed
4747
body: email/body-failed
48-
file: git/tests/tasks/run-example.yaml
48+
config:
49+
platform: linux
50+
image_resource:
51+
type: docker-image
52+
source:
53+
repository: gcr.io/cloud-solutions-group/tf-run-example
54+
tag: latest
55+
inputs:
56+
- name: git
57+
- name: git-pull-requests
58+
optional: true
59+
outputs:
60+
- name: email
61+
run: {path: /opt/run-example.sh}
4962

5063
###
5164
# Resource types

tests/resource_types/terraform-resource/Dockerfile

Lines changed: 0 additions & 36 deletions
This file was deleted.

tests/resource_types/terraform-resource/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/tasks/run-example.yaml

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)