Skip to content

Commit

Permalink
introduce landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Mar 15, 2020
1 parent 75f4763 commit 29adc40
Show file tree
Hide file tree
Showing 193 changed files with 16,927 additions and 829 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/docs.yml
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 }}
133 changes: 133 additions & 0 deletions .github/workflows/main.yml
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 }}

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ out/*
logs/*

### Kafka HQ ###
src/**/*-dev.yml
src/**/*-*.yml
connects-plugins/

## Docker
.env
docker-compose.override.yml
docker-compose.override.yml
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ WORKDIR /app
COPY docker /
ENV MICRONAUT_CONFIG_FILES=/app/application.yml
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["./kafkahq"]
CMD ["./akhq"]
Loading

0 comments on commit 29adc40

Please sign in to comment.