loki-action
ActionsTags
(2)Collect and ship logs from a Github Actions workflow to a LogQL Push API (qryn, loki)
some-job:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: build
run: this-will-fail
- name: qryn-logs
if: failure()
uses: metrico/loki-action@V3.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
endpoint: ${{ secrets.LOGQL_ENDPOINT }}
username: ${{ secrets.LOGQL_USER }}
password: ${{ secrets.LOGQL_PASS }}
job-names: build
Install the dependencies
$ npm install
Lint and package it for distribution
$ npm run all
Loosely based on elastic-logs by masci
loki-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.