Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Updating docker workflow (#467)

Robbie Davis9e52316b2329
diff --git a/.github/workflows/nightly-docker.yml b/.github/workflows/nightly-docker.yml
index 45621456a..2983d3574 100644
--- a/.github/workflows/nightly-docker.yml
+++ b/.github/workflows/nightly-docker.yml
@@ -2,7 +2,15 @@ name: Build Nightly Docker
on:
workflow_dispatch:
-
+ inputs:
+ title:
+ description: "PR Title"
+ required: true
+ default: ""
+ body:
+ description: "PR Body"
+ required: true
+ default: ""
jobs:
docker:
name: Building Nightly Docker
@@ -79,10 +87,9 @@ jobs:
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Notify Discord
- uses: rjstone/discord-webhook-notify@v1
+ uses: Sniddl/[email protected]
with:
- severity: info
- description: ${{ github.event.body }}
- details: 'https://hub.docker.com/r/kizaing/kavita/tags?page=1&ordering=last_updated'
- text: A new nightly build has been released for docker.
- webhookUrl: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}
+ webhook: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}
+ message: "A new nightly build v${{steps.get-version.outputs.assembly-version}} has been released for docker.\nhttps://hub.docker.com/r/kizaing/kavita/tags?page=1&ordering=last_updated"
+ embed: '{ "title": "${{ github.event.inputs.title }}", "description": "${{ github.event.inputs.body }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://avatars.io/gravatar/{{ commit.author.email }}"} }'
+ last-commit-only: true
diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml
index fef98472e..68e5e5c36 100644
--- a/.github/workflows/sonar-scan.yml
+++ b/.github/workflows/sonar-scan.yml
@@ -127,11 +127,16 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
steps:
+ - name: Find Current Pull Request
+ uses: jwalton/[email protected]
+ id: findPr
+
- name: If Push to Develop, Trigger Docker Stable
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Build Nightly Docker
token: ${{ secrets.REPO_GHA_PAT }}
+ inputs: '{ "title": "${{ steps.findPr.outputs.title }}", "body": "${{ steps.findPr.outputs.body }}" }'
stable:
name: Trigger Stable Docker if Main push