Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 8, 2022
1 parent a265280 commit e30a169
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
all:

setup:
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git checkout -B "$(FIXTURE_BRANCH)/main"
git add .
git commit -a -m "Initial commit"
git push origin -f "$(FIXTURE_BRANCH)/main"

test1:
git checkout "$(FIXTURE_BRANCH)/main"
git checkout -b "$(FIXTURE_BRANCH)/test1"
sed -i -e 's/name: echoserver/name: echoserver-test1/g' app1/deployment/echoserver.yaml
git commit -a -m 'e2e-test: app1'
git push origin -f "$(FIXTURE_BRANCH)/test1"
gh pr create --base "$(FIXTURE_BRANCH)/main" --fill --body "$(PULL_REQUEST_BODY)" --label e2e-test
gh pr merge --squash
git checkout "$(FIXTURE_BRANCH)/main"
git pull origin "$(FIXTURE_BRANCH)/main" --ff-only

test2:
git checkout "$(FIXTURE_BRANCH)/main"
git checkout -b "$(FIXTURE_BRANCH)/test2"
sed -i -e 's/app: echoserver/app: echoserver-test2/g' app2/deployment/echoserver.yaml
git commit -a -m 'e2e-test: app2'
git push origin -f "$(FIXTURE_BRANCH)/test2"
gh pr create --base "$(FIXTURE_BRANCH)/main" --fill --body "$(PULL_REQUEST_BODY)" --label e2e-test
gh pr merge --squash
git checkout "$(FIXTURE_BRANCH)/main"
git pull origin "$(FIXTURE_BRANCH)/main" --ff-only
19 changes: 19 additions & 0 deletions app1/deployment/echoserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
spec:
replicas: 1
selector:
matchLabels:
app: echoserver
template:
metadata:
labels:
app: echoserver
spec:
containers:
- image: gcr.io/google_containers/echoserver:1.8
name: echoserver
ports:
- containerPort: 8080
4 changes: 4 additions & 0 deletions app1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace: app1
resources:
- namespace/app1.yaml
- deployment/echoserver.yaml
4 changes: 4 additions & 0 deletions app1/namespace/app1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: app1
19 changes: 19 additions & 0 deletions app2/deployment/echoserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
spec:
replicas: 1
selector:
matchLabels:
app: echoserver
template:
metadata:
labels:
app: echoserver
spec:
containers:
- image: gcr.io/google_containers/echoserver:1.8
name: echoserver
ports:
- containerPort: 8080
4 changes: 4 additions & 0 deletions app2/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace: app2
resources:
- namespace/app2.yaml
- deployment/echoserver.yaml
4 changes: 4 additions & 0 deletions app2/namespace/app2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: app2

0 comments on commit e30a169

Please sign in to comment.