Skip to content

Commit 29adc40

Browse files
committed
introduce landing page
1 parent 75f4763 commit 29adc40

File tree

193 files changed

+16927
-829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+16927
-829
lines changed

Diff for: .github/workflows/docs.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
check:
10+
name: Docs
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
# Helm charts
17+
- uses: J12934/helm-gh-pages-action@master
18+
with:
19+
access-token: ${{ secrets.GITHUB_PERSONAL_TOKEN }}
20+
charts-folder: "helm"
21+
deploy-branch: helm
22+
23+
# Web site
24+
- name: Contributor
25+
run: |
26+
npm i github-contributors-list
27+
node_modules/.bin/githubcontrib --repo kafkahq --owner tchiotludo --format html --sortOrder desc > docs/contributors.html
28+
29+
# Clone helm charts
30+
- name: Clone helm charts
31+
uses: actions/checkout@v2
32+
with:
33+
ref: helm
34+
path: tmp-helm
35+
36+
# Web site
37+
- name: Add helm charts
38+
run: |
39+
rm -rf tmp-helm/.git
40+
cp -R tmp-helm/* docs/
41+
echo "akhq.io" > docs/CNAME
42+
43+
# Deploy
44+
- name: Deploy
45+
uses: peaceiris/actions-gh-pages@v2
46+
env:
47+
PERSONAL_TOKEN: ${{ secrets.GITHUB_PERSONAL_TOKEN }}
48+
PUBLISH_BRANCH: gh-pages
49+
PUBLISH_DIR: docs/
50+
51+
# Slack
52+
- name: Slack notification
53+
uses: 8398a7/action-slack@v2
54+
if: always()
55+
with:
56+
status: ${{ job.status }}
57+
username: Github Actions
58+
icon_emoji: ':octocat:'
59+
channel: '#akhq'
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

Diff for: .github/workflows/main.yml

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
tags:
9+
- v*
10+
11+
pull_request:
12+
branches:
13+
- master
14+
- dev
15+
16+
jobs:
17+
check:
18+
name: Check
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
java: ['11']
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
# Caches
29+
- name: Gradle cache
30+
uses: actions/cache@v1
31+
with:
32+
path: ~/.gradle/caches
33+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
34+
restore-keys: |
35+
${{ runner.os }}-gradle-
36+
- name: Gradle wrapper cache
37+
uses: actions/cache@v1
38+
with:
39+
path: ~/.gradle/wrapper
40+
key: ${{ runner.os }}-wrapper-${{ hashFiles('**/*.gradle') }}
41+
restore-keys: |
42+
${{ runner.os }}-wrapper-
43+
- name: Npm cache
44+
uses: actions/cache@v1
45+
with:
46+
path: ~/.npm
47+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
48+
restore-keys: |
49+
${{ runner.os }}-node-
50+
- name: Node cache
51+
uses: actions/cache@v1
52+
with:
53+
path: node
54+
key: ${{ runner.os }}-node-${{ hashFiles('**/*.gradle') }}
55+
restore-keys: |
56+
${{ runner.os }}-node-
57+
58+
# JDK
59+
- name: Set up JDK
60+
uses: actions/setup-java@v1
61+
with:
62+
java-version: ${{ matrix.java }}
63+
64+
# Gradle check
65+
- name: Build with Gradle
66+
run: |
67+
./gradlew classes testClasses --parallel --no-daemon
68+
./gradlew check --no-daemon
69+
70+
# Shadow Jar
71+
- name: Build jars
72+
if: success() && matrix.java == '11'
73+
run: ./gradlew shadowJar --no-daemon
74+
75+
# Upload artifacts
76+
- name: Copy jar to docker
77+
run: cp build/libs/* docker/app/akhq.jar
78+
- name: Upload jar
79+
uses: actions/upload-artifact@v1
80+
if: success() && matrix.java == '11'
81+
with:
82+
name: jar
83+
path: build/libs/
84+
85+
# Release
86+
- name: Create Release
87+
id: create_release
88+
uses: actions/create-release@latest
89+
# if: startsWith(github.ref, 'refs/tags/')
90+
env:
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
with:
93+
tag_name: ${{ github.ref }}
94+
release_name: ${{ github.ref }}
95+
draft: true
96+
prerelease: true
97+
98+
# Upload Jar
99+
- name: Upload Release Asset
100+
id: upload-release-asset
101+
uses: actions/upload-release-asset@v1
102+
# if: startsWith(github.ref, 'refs/tags/')
103+
env:
104+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
with:
106+
upload_url: ${{ steps.create_release.outputs.upload_url }}
107+
asset_path: ./docker/app/akhq.jar
108+
asset_name: akhq.jar
109+
asset_content_type: application/java-archive
110+
111+
# Docker
112+
- name: Publish to Docker Hub
113+
uses: elgohr/Publish-Docker-Github-Action@master
114+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
115+
with:
116+
name: tchiotludo/akhq
117+
username: ${{ secrets.DOCKERHUB_USERNAME }}
118+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
119+
tag_names: true
120+
121+
# Slack
122+
- name: Slack notification
123+
uses: 8398a7/action-slack@v2
124+
if: always()
125+
with:
126+
status: ${{ job.status }}
127+
username: Github Actions
128+
icon_emoji: ':octocat:'
129+
channel: '#akhq'
130+
env:
131+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
133+

Diff for: .gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ out/*
3636
logs/*
3737

3838
### Kafka HQ ###
39-
src/**/*-dev.yml
39+
src/**/*-*.yml
4040
connects-plugins/
4141

4242
## Docker
4343
.env
44-
docker-compose.override.yml
44+
docker-compose.override.yml

Diff for: .travis.yml

-61
This file was deleted.

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ WORKDIR /app
44
COPY docker /
55
ENV MICRONAUT_CONFIG_FILES=/app/application.yml
66
ENTRYPOINT ["docker-entrypoint.sh"]
7-
CMD ["./kafkahq"]
7+
CMD ["./akhq"]

0 commit comments

Comments
 (0)