Add log export to grafana through loki and promtail #9
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
name: Ineundo plugin | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build with Gradle | |
run: ./gradlew shadowJar | |
env: | |
USERNAME: ${{ secrets.GPR_ACTOR }} | |
TOKEN: ${{ secrets.GPR_TOKEN }} | |
- name: Publish to GitHub Packages | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
run: ./gradlew publish | |
env: | |
USERNAME: ${{ secrets.GPR_ACTOR }} | |
TOKEN: ${{ secrets.GPR_TOKEN }} |