Feature/docker stable setup (#296)

* Added stable docker workflow

* Changed webui pull to develop
This commit is contained in:
Kizaing 2021-06-09 11:10:06 -04:00 committed by GitHub
parent b61da7eb08
commit 4ae9f078b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 2 deletions

View File

@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: Kareadita/Kavita-webui
ref: feature/sentry-release
ref: develop
path: Kavita-webui/
- name: NodeJS to Compile WebUI
@ -69,4 +69,4 @@ jobs:
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 }}
webhookUrl: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}

63
.github/workflows/stable-docker.yml vendored Normal file
View File

@ -0,0 +1,63 @@
name: CI to Docker Hub
on:
push:
branches:
- 'main'
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: main
path: Kavita-webui/
- name: NodeJS to Compile WebUI
uses: actions/setup-node@v2.1.5
with:
node-version: '14'
- run: |
cd Kavita-webui/ || exit
npm install
npm run prod
mv 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:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}