Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample #42

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
3 changes: 0 additions & 3 deletions Dockerfile

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# gcbapp-dockerfile-example
Example used in the Cloud Build GitHub app tutorial
https://cloud.google.com/cloud-build/docs/run-builds-on-github
<!-- # FROM alpine
# COPY helloworld.sh /
# CMD ["/helloworld.sh"] -->
steps:
- name: 'gcr.io/cloud-builders/git'
args: ['clone', 'https://github.com/chocolatedisco/gcbapp-dockerfile-example.git']
1 change: 1 addition & 0 deletions a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aissssdfsdfadsfadaa
1 change: 1 addition & 0 deletions aaa/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
asddafdfaaaaa
1 change: 1 addition & 0 deletions bbb/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
1 change: 1 addition & 0 deletions ccc/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
8 changes: 8 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
steps:
- name: 'gcr.io/cloud-builders/kubectl'
entrypoint: 'bash'
args: ['kube.sh']
# steps:
# - name: 'gcr.io/cloud-builders/git'
# entrypoint: 'bash'
# args: ['helloworld.sh']
1 change: 1 addition & 0 deletions ddd/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
1 change: 1 addition & 0 deletions eee/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
1 change: 1 addition & 0 deletions fff/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
1 change: 1 addition & 0 deletions ggg/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
4 changes: 3 additions & 1 deletion helloworld.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/sh
echo "Hello, world!"
git clone https://github.com/chocolatedisco/gcbapp-dockerfile-example.git
cd gcbapp-dockerfile-example
ls
1 change: 1 addition & 0 deletions hhh/a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaaaa
3 changes: 3 additions & 0 deletions kube.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kubectl version
kustomize version
pwd