From 25d55817547930e3f690d7632ca83a009dc8c219 Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 10:44:04 +0900 Subject: [PATCH 01/11] Update helloworld.sh --- helloworld.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/helloworld.sh b/helloworld.sh index 79a32fd6..0b5096e7 100644 --- a/helloworld.sh +++ b/helloworld.sh @@ -1,2 +1,3 @@ #!/bin/sh echo "Hello, world!" +echo "The time is $(date)." From e52a5dc5c4fff133d1a9c5e14d2839cba8ab28c2 Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 11:27:13 +0900 Subject: [PATCH 02/11] yaml create --- Dockerfile | 3 --- README.md | 3 +++ cloudbuild.yaml | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 Dockerfile create mode 100644 cloudbuild.yaml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b5b30924..00000000 --- a/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM alpine -COPY helloworld.sh / -CMD ["/helloworld.sh"] diff --git a/README.md b/README.md index 51c3ca35..5e6f6d96 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # gcbapp-dockerfile-example Example used in the Cloud Build GitHub app tutorial https://cloud.google.com/cloud-build/docs/run-builds-on-github + diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 00000000..9f12dae8 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,3 @@ +steps: +- name: 'gcr.io/cloud-builders/git' + args: ['log', '-1'] \ No newline at end of file From 2131606f79541bd359fe8db3c65e180556e8192c Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 11:30:10 +0900 Subject: [PATCH 03/11] create files --- .DS_Store | Bin 0 -> 10244 bytes a.txt | 1 + aaa/a.txt | 1 + bbb/a.txt | 1 + ccc/a.txt | 1 + ddd/a.txt | 1 + eee/a.txt | 1 + fff/a.txt | 1 + ggg/a.txt | 1 + hhh/a.txt | 1 + 10 files changed, 9 insertions(+) create mode 100644 .DS_Store create mode 100644 a.txt create mode 100644 aaa/a.txt create mode 100644 bbb/a.txt create mode 100644 ccc/a.txt create mode 100644 ddd/a.txt create mode 100644 eee/a.txt create mode 100644 fff/a.txt create mode 100644 ggg/a.txt create mode 100644 hhh/a.txt diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..4bb823131b373c3edf2fc326c6b78d15e93cec82 GIT binary patch literal 10244 zcmeI1&ubGw6vy8*t?nk)Mi8pd!-9xCl#`2 z&n+%TTbFhqtZ)Y=+=0n&W->!z^zGya#t1lxLd0>p6D3?z>5A%?pk#k8JS2_gbwamIdbv1_Z`nx;*D=o3x4zNlOvBtLpXv3gwd$NztuFTG ztX{2F!SUk7e%~~Vvlp(d-tRnpe(>t`o44;id?YVmG9tk#@jUE5;Yb48YsO&^h1)p8 z)dg^PRWKrK1tY1BVElZD@yj7bqi7T-i)n~QcPA+QJu$=h6P@Yv3zt_mclICk9`~QT z#I0Z%qL~uU!~OtA5<&*e7GO=IVbiEjzhR`xFB;mOf@TWA1Q0<7Tzq>v;Nz2v2X`Nj zYSVpQgv=m%CN~LkN&{tLQC^bTr zU#J8@foj4kEW;I8f*WY(G2|=3oJXwGe``oh7fnDD&;&FAO&~*{AZ9Fn|G)hE-~Tgy zdO{P>1oA_GjW0Eq8n~asn=Ex}{I1=?wuy}wt{VtTF4)m^JX*Sr#|M5LKZ}iPE8Oye jRD@uAP&> literal 0 HcmV?d00001 diff --git a/a.txt b/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/aaa/a.txt b/aaa/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/aaa/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/bbb/a.txt b/bbb/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/bbb/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/ccc/a.txt b/ccc/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/ccc/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/ddd/a.txt b/ddd/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/ddd/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/eee/a.txt b/eee/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/eee/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/fff/a.txt b/fff/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/fff/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/ggg/a.txt b/ggg/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/ggg/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file diff --git a/hhh/a.txt b/hhh/a.txt new file mode 100644 index 00000000..e4a7dd9d --- /dev/null +++ b/hhh/a.txt @@ -0,0 +1 @@ +aaaaa \ No newline at end of file From 5c4bb5b77a33977b85d3dcbf8190c19dc636ebcd Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 11:32:09 +0900 Subject: [PATCH 04/11] aaa --- aaa/a.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aaa/a.txt b/aaa/a.txt index e4a7dd9d..971a2734 100644 --- a/aaa/a.txt +++ b/aaa/a.txt @@ -1 +1 @@ -aaaaa \ No newline at end of file +asddafdfaaaaa From e6b9cf0595337b06322b49aff15a62b0269c1a31 Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 11:42:33 +0900 Subject: [PATCH 05/11] cloudbuild --- cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 9f12dae8..a583e66b 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,3 +1,3 @@ steps: - name: 'gcr.io/cloud-builders/git' - args: ['log', '-1'] \ No newline at end of file + args: ['clone', 'https://github.com/chocolatedisco/gcbapp-dockerfile-example.git'] \ No newline at end of file From ee7a1f14a38900bb309d2437e78c1ec294742ed3 Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 11:53:19 +0900 Subject: [PATCH 06/11] entry --- README.md | 3 +++ cloudbuild.yaml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e6f6d96..ae15dfaa 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,6 @@ https://cloud.google.com/cloud-build/docs/run-builds-on-github +steps: +- name: 'gcr.io/cloud-builders/git' + args: ['clone', 'https://github.com/chocolatedisco/gcbapp-dockerfile-example.git'] \ No newline at end of file diff --git a/cloudbuild.yaml b/cloudbuild.yaml index a583e66b..f11077fa 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,3 +1,4 @@ steps: - name: 'gcr.io/cloud-builders/git' - args: ['clone', 'https://github.com/chocolatedisco/gcbapp-dockerfile-example.git'] \ No newline at end of file + entrypoint: 'bash' + args: ['helloworld.sh'] From f76bf7cabd48e7870311c02b55dc20a90304716e Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 11:58:40 +0900 Subject: [PATCH 07/11] a.txt --- a.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a.txt b/a.txt index e4a7dd9d..e0a368ca 100644 --- a/a.txt +++ b/a.txt @@ -1 +1 @@ -aaaaa \ No newline at end of file +aissssdfsaaa From 3fef81c373a1612f03bea0b23a36865df854cab9 Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 12:00:05 +0900 Subject: [PATCH 08/11] helloworld.sh --- helloworld.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helloworld.sh b/helloworld.sh index 0b5096e7..f5b26c94 100644 --- a/helloworld.sh +++ b/helloworld.sh @@ -1,3 +1,3 @@ #!/bin/sh -echo "Hello, world!" -echo "The time is $(date)." +git clone https://github.com/livesense-inc/brain.manifests.git +cd brain.manifests From e46cf2763e72b9322ccb71ae7a174e87b37b0d26 Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 13:00:06 +0900 Subject: [PATCH 09/11] helloworld.sh --- helloworld.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helloworld.sh b/helloworld.sh index f5b26c94..665ebd25 100644 --- a/helloworld.sh +++ b/helloworld.sh @@ -1,3 +1,4 @@ #!/bin/sh -git clone https://github.com/livesense-inc/brain.manifests.git -cd brain.manifests +git clone https://github.com/chocolatedisco/gcbapp-dockerfile-example.git +cd gcbapp-dockerfile-example +ls \ No newline at end of file From 0f56485cc4b1f496da4b5fb4f42b1d546120dc8b Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 13:42:35 +0900 Subject: [PATCH 10/11] cloudbuild.yaml --- cloudbuild.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index f11077fa..03ac7b9f 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,4 +1,8 @@ steps: -- name: 'gcr.io/cloud-builders/git' +- name: 'gcr.io/cloud-builders/kubectl' entrypoint: 'bash' - args: ['helloworld.sh'] + args: ['kube.sh'] +# steps: +# - name: 'gcr.io/cloud-builders/git' +# entrypoint: 'bash' +# args: ['helloworld.sh'] From 3b869ca61282a56b87f4fa53192487daae652eda Mon Sep 17 00:00:00 2001 From: chocolatedisco Date: Tue, 21 May 2019 13:44:50 +0900 Subject: [PATCH 11/11] kube.sh --- a.txt | 2 +- kube.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 kube.sh diff --git a/a.txt b/a.txt index e0a368ca..8fc7d3d2 100644 --- a/a.txt +++ b/a.txt @@ -1 +1 @@ -aissssdfsaaa +aissssdfsdfadsfadaa diff --git a/kube.sh b/kube.sh new file mode 100644 index 00000000..7cd8b34c --- /dev/null +++ b/kube.sh @@ -0,0 +1,3 @@ +kubectl version +kustomize version +pwd \ No newline at end of file