mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Feature/docker stable setup (#296)
* Added stable docker workflow * Changed webui pull to develop
This commit is contained in:
parent
b61da7eb08
commit
4ae9f078b0
2
.github/workflows/nightly-docker.yml
vendored
2
.github/workflows/nightly-docker.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: Kareadita/Kavita-webui
|
repository: Kareadita/Kavita-webui
|
||||||
ref: feature/sentry-release
|
ref: develop
|
||||||
path: Kavita-webui/
|
path: Kavita-webui/
|
||||||
|
|
||||||
- name: NodeJS to Compile WebUI
|
- name: NodeJS to Compile WebUI
|
||||||
|
63
.github/workflows/stable-docker.yml
vendored
Normal file
63
.github/workflows/stable-docker.yml
vendored
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user