
* Fixed file pathing for automated docker builds * Added back in renaming the Kavita executable * Testing new method for copying wwwroot folder * Fixed file pathing * Fixed pathing to test * Potential fix for Docker file permissions Co-authored-by: Chris Plaatjes <chris.p@boxbrite.com> Co-authored-by: Boxbrite User <boxbrite@Rathalos.localdomain>
79 lines
2 KiB
YAML
79 lines
2 KiB
YAML
name: Build Nightly Docker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'develop'
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Check Out Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Check Out WebUI
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: Kareadita/Kavita-webui
|
|
ref: develop
|
|
path: Kavita-webui/
|
|
|
|
- name: NodeJS to Compile WebUI
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: '14'
|
|
- run: |
|
|
|
|
cd Kavita-webui/ || exit
|
|
echo 'Installing web dependencies'
|
|
npm install
|
|
|
|
echo 'Building UI'
|
|
npm run prod
|
|
|
|
echo 'Copying back to Kavita wwwroot'
|
|
rsync -a dist/ ../API/wwwroot/
|
|
|
|
cd ../ || exit
|
|
|
|
- name: Compile dotnet app
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: '5.0.x'
|
|
- run: ./action-build.sh
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Build and push
|
|
id: docker_build
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
push: true
|
|
tags: kizaing/kavita:nightly
|
|
|
|
- name: Image digest
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
|
|
|
- name: Notify Discord
|
|
uses: rjstone/discord-webhook-notify@v1
|
|
with:
|
|
severity: info
|
|
description:
|
|
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 }}
|