-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a265280
commit e30a169
Showing
7 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace: app1 | ||
resources: | ||
- namespace/app1.yaml | ||
- deployment/echoserver.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: app1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace: app2 | ||
resources: | ||
- namespace/app2.yaml | ||
- deployment/echoserver.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: app2 |