forked from tchiotludo/akhq
-
Notifications
You must be signed in to change notification settings - Fork 0
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
75f4763
commit 29adc40
Showing
193 changed files
with
16,927 additions
and
829 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,62 @@ | ||
name: Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check: | ||
name: Docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Helm charts | ||
- uses: J12934/helm-gh-pages-action@master | ||
with: | ||
access-token: ${{ secrets.GITHUB_PERSONAL_TOKEN }} | ||
charts-folder: "helm" | ||
deploy-branch: helm | ||
|
||
# Web site | ||
- name: Contributor | ||
run: | | ||
npm i github-contributors-list | ||
node_modules/.bin/githubcontrib --repo kafkahq --owner tchiotludo --format html --sortOrder desc > docs/contributors.html | ||
# Clone helm charts | ||
- name: Clone helm charts | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: helm | ||
path: tmp-helm | ||
|
||
# Web site | ||
- name: Add helm charts | ||
run: | | ||
rm -rf tmp-helm/.git | ||
cp -R tmp-helm/* docs/ | ||
echo "akhq.io" > docs/CNAME | ||
# Deploy | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v2 | ||
env: | ||
PERSONAL_TOKEN: ${{ secrets.GITHUB_PERSONAL_TOKEN }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: docs/ | ||
|
||
# Slack | ||
- name: Slack notification | ||
uses: 8398a7/action-slack@v2 | ||
if: always() | ||
with: | ||
status: ${{ job.status }} | ||
username: Github Actions | ||
icon_emoji: ':octocat:' | ||
channel: '#akhq' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
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,133 @@ | ||
name: Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
tags: | ||
- v* | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
java: ['11'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Caches | ||
- name: Gradle cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Gradle wrapper cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-wrapper-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-wrapper- | ||
- name: Npm cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Node cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: node | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
# JDK | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
# Gradle check | ||
- name: Build with Gradle | ||
run: | | ||
./gradlew classes testClasses --parallel --no-daemon | ||
./gradlew check --no-daemon | ||
# Shadow Jar | ||
- name: Build jars | ||
if: success() && matrix.java == '11' | ||
run: ./gradlew shadowJar --no-daemon | ||
|
||
# Upload artifacts | ||
- name: Copy jar to docker | ||
run: cp build/libs/* docker/app/akhq.jar | ||
- name: Upload jar | ||
uses: actions/upload-artifact@v1 | ||
if: success() && matrix.java == '11' | ||
with: | ||
name: jar | ||
path: build/libs/ | ||
|
||
# Release | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: true | ||
prerelease: true | ||
|
||
# Upload Jar | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./docker/app/akhq.jar | ||
asset_name: akhq.jar | ||
asset_content_type: application/java-archive | ||
|
||
# Docker | ||
- name: Publish to Docker Hub | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') | ||
with: | ||
name: tchiotludo/akhq | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
tag_names: true | ||
|
||
# Slack | ||
- name: Slack notification | ||
uses: 8398a7/action-slack@v2 | ||
if: always() | ||
with: | ||
status: ${{ job.status }} | ||
username: Github Actions | ||
icon_emoji: ':octocat:' | ||
channel: '#akhq' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
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 was deleted.
Oops, something went wrong.
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.