-
Notifications
You must be signed in to change notification settings - Fork 173
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
48 changed files
with
1,147 additions
and
524 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,17 @@ | ||
{ | ||
"LABEL": { | ||
"name": "title needs formatting", | ||
"color": "EEEEEE" | ||
}, | ||
"CHECKS": { | ||
"prefixes": ["fix: ", "feat: ","doc: ","ci: ","chore: "], | ||
"regexp": "docs\\(v[0-9]\\): ", | ||
"regexpFlags": "i", | ||
"ignoreLabels" : ["dont-check-PRs-with-this-label", "meta"] | ||
}, | ||
"MESSAGES": { | ||
"success": "All OK", | ||
"failure": "Failing CI PR title check", | ||
"notice": "" | ||
} | ||
} |
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,19 @@ | ||
name: "PR Title Checker" | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: thehanimo/pr-title-checker@v1.3.4 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
pass_on_octokit_error: false | ||
configuration_path: ".github/pr-title-checker-config.json" |
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,41 @@ | ||
# Auto build and push docker image to docker hub when releasing tags | ||
--- | ||
name: Auto Layotto Build and Push image | ||
|
||
on: | ||
create | ||
|
||
jobs: | ||
publish_image: | ||
name: Build and Push Layotto image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2.3.5 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Extract Tags name | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
id: tag_env | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=version;]$(echo ${GITHUB_REF##*/})" | ||
- name: Login to Docker Hub | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build Layotto Image | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
run: | | ||
make image tag=${{ steps.tag_env.outputs.version }} | ||
- name: Push Layotto Docker image | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
run: | | ||
docker push layotto/layotto:${{ steps.tag_env.outputs.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
Oops, something went wrong.