Skip to content

Commit 77a70a7

Browse files
Merge pull request codefresh-io#16 from nick-codefresh/master
Updated README for GitHub PR + updated catalog
2 parents d86a8e4 + 7e32c4c commit 77a70a7

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

CATALOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| [Slack](stable/slack/README.md) | @olegs-codefresh | Send message to slack | `slack` `notify` |
1010
| [Deploy to ECS](stable/ecs-deploy/README.md) | @verchol | Deploy docker image to ECS | `ecs` `deploy` `containers` `aws` |
1111
| [Deploy Kompose](stable/kompose/README.md) | @alexei-led | Deploy Docker Compose to Kubernetes cluster with Kubernetes [Kompose](http://kompose.io) | `docker` `docker-compose` `kompose` `deploy` `kubernetes` |
12+
| [GitHub PR](stable/github-pr/README.MD) | @nick-codefresh | Creates pull request to GitHub | `github` `pull request`
1213

1314

1415
## Incubator Plugins

stable/github-pr/README.MD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,33 @@ Creates a new pull request in GitHub
1010
- `HEAD`: The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch
1111
- `BASE`: The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
1212
- `TITLE`: The title of the pull request
13+
14+
## Deployment with Codefresh
15+
- Add encrypted environment variables for:
16+
* GITHUB_TOKEN
17+
18+
- Add "github-pr" step as descibed below
19+
20+
```yaml
21+
# codefresh.yml example with github pr step
22+
version: '1.0'
23+
24+
steps:
25+
build-step:
26+
type: build
27+
image-name: repo/image:tag
28+
29+
push to registry:
30+
type: push
31+
candidate: ${{build-step}}
32+
tag: ${{CF_BRANCH}}
33+
34+
github-pr:
35+
image: codefresh/github-pr-plugin
36+
environment:
37+
- GITHUB_REPO_OWNER=${{CF_REPO_OWNER}}
38+
- GITHUB_REPO_NAME=${{CF_REPO_NAME}}
39+
- BASE=master
40+
- HEAD=${{CF_BRANCH}}
41+
- TITLE=Codefresh PR for ${{CF_BRANCH}}
42+
```

0 commit comments

Comments
 (0)