-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
12 changed files
with
205 additions
and
4 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
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,8 @@ | ||
## Contributing | ||
Greetings fellow engineer! Here's the contributing guideline, please follow it in all your interactions with the project. | ||
|
||
- It is crucial to keep the documentation in sync with the code base, so remember to update the docs with your changes. | ||
|
||
#### Plural Team | ||
- Please make sure you followed the [Onboarding Guide](https://github.com/pluralcom/plural-docs/tree/master/onboarding). | ||
- Please checkout the [Plural's Software Engineer Guide](https://github.com/pluralcom/plural-docs/tree/master/software-engineer-guidelines). |
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 @@ | ||
|
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,18 @@ | ||
# # Head rules | ||
|
||
# Apply label "feature" if base matches "feature/*" | ||
feature: | ||
head: "feature/*" | ||
|
||
# Apply label "enhancement" if base matches "enhancement/*" | ||
enhancement: | ||
head: "enhancement/*" | ||
|
||
# Apply label "bug" if base matches "hotfix/*" | ||
bug: | ||
head: ["hotfix/*", "bugfix/*"] | ||
|
||
# Apply label "tests" if base matches "tests/*" | ||
tests: | ||
head: ["tests/*"] | ||
|
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,15 @@ | ||
onComment: | ||
set: | ||
- wip | ||
|
||
onApproved: | ||
remove: | ||
- help wanted | ||
set: | ||
- ready | ||
|
||
onChangesRequested: | ||
remove: | ||
- invalid | ||
- duplicate | ||
- help wanted |
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,25 @@ | ||
name: Label and Assign PR to assignee and reviewers. | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
automation: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Assign PR to creator | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Label PR based on branch | ||
uses: ffittschen/pr-branch-labeler@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Assign Review Request to Tokyo | ||
uses: kunihiko-t/[email protected] | ||
if: github.event.pull_request.user.login != 'a-tokyo' | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
reviewers: "a-tokyo" |
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,21 @@ | ||
name: Merge PR | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, review_request_removed] | ||
pull_request_review: | ||
|
||
jobs: | ||
merge: | ||
runs-on: ubuntu-latest | ||
name: Merge | ||
steps: | ||
- name: Integration check | ||
uses: squalrus/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
test: true | ||
reviewers: true | ||
labels: ready | ||
blocking-labels: blocked, archived, wip | ||
method: squash |
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,14 @@ | ||
name: PR Labeler on Change | ||
|
||
on: [pull_request_review, pull_request_review_comment] | ||
|
||
jobs: | ||
label_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Labeler | ||
uses: estrada9166/labeler@v1 | ||
with: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CONFIG_PATH: .github/pr-labeler-on-change.yml |
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,59 @@ | ||
name: Release and deploy to docker hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Login to docker hub | ||
if: success() | ||
uses: actions-hub/docker/login@master | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Setup env vars | ||
id: ownEnvVars | ||
run: | | ||
# Set PACKAGE_VERSION | ||
PACKAGE_VERSION=$(node -p -e "require('./package.json').version") | ||
echo ::set-output name=PACKAGE_VERSION::$PACKAGE_VERSION | ||
# Set COMMIT_LOG | ||
COMMIT_LOG=`git log $(git describe --tags --abbrev=0)..HEAD --date=iso-local --format='%cd %h %an - %s '` | ||
echo ::set-output name=COMMIT_LOG::$COMMIT_LOG | ||
# Set DOCKER_IMAGE_NAME | ||
DOCKER_IMAGE_NAME="pluralcom/neo4j" | ||
echo ::set-output name=DOCKER_IMAGE_NAME::$DOCKER_IMAGE_NAME | ||
- name: Build image | ||
if: success() | ||
run: docker build -t ${{ steps.ownEnvVars.outputs.DOCKER_IMAGE_NAME }}:${{ steps.ownEnvVars.outputs.PACKAGE_VERSION }} . | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.ownEnvVars.outputs.PACKAGE_VERSION }} | ||
commit: master | ||
body: ${{ steps.ownEnvVars.outputs.COMMIT_LOG }} | ||
|
||
- name: Push to docker tag:version | ||
if: success() | ||
uses: actions-hub/docker@master | ||
with: | ||
args: push ${{ steps.ownEnvVars.outputs.DOCKER_IMAGE_NAME }}:${{ steps.ownEnvVars.outputs.PACKAGE_VERSION }} | ||
|
||
- name: Slack Notification - Release | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_USERNAME: "dockerBot" | ||
SLACK_CHANNEL: "releases_npm" | ||
SLACK_ICON: "https://avatars0.githubusercontent.com/u/5429470?s=200&v=4" | ||
SLACK_MESSAGE: "🐳 Released Docker image ${{github.repository}} https://github.com/${{github.repository}}/releases/tag/${{ steps.ownEnvVars.outputs.PACKAGE_VERSION }}" |
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
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
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,33 @@ | ||
{ | ||
"name": "@pluralcom/docker-neo4j", | ||
"version": "4.0.0-enterprise-p.0", | ||
"private": true, | ||
"description": "🐳 Docker container files that are used to backup Neo4j on EKS' Kubernetes", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pluralcom/plural-neo4j-backup.git" | ||
}, | ||
"author": { | ||
"name": "Ahmed Tarek", | ||
"email": "[email protected]", | ||
"url": "https://github.com/A-Tokyo" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/pluralcom/eslint-config-plural/issues" | ||
}, | ||
"homepage": "https://github.com/pluralcom/eslint-config-plural", | ||
"scripts": { | ||
"test": "docker build . -t test" | ||
}, | ||
"keywords": [ | ||
"docker", | ||
"neo4j", | ||
"database", | ||
"graph-database", | ||
"aws", | ||
"eks", | ||
"kubernetes", | ||
"plural" | ||
], | ||
"license": "MIT" | ||
} |