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.

Adding automated docker version tag for stable releases

Robbie Davis2209a65d52e2
diff --git a/.github/workflows/stable-docker.yml b/.github/workflows/stable-docker.yml
index 6dfed1b30..cbf5c14c6 100644
--- a/.github/workflows/stable-docker.yml
+++ b/.github/workflows/stable-docker.yml
@@ -30,7 +30,7 @@ jobs:
rsync -a dist/ ../../API/wwwroot/
cd ../ || exit
-
+
- name: Get csproj Version
uses: naminodarie/get-net-sdk-project-versions-action@v1
id: get-version
@@ -38,7 +38,15 @@ jobs:
proj-path: Kavita.Common/Kavita.Common.csproj
- name: Echo csproj version
- run: echo "${{steps.get-version.outputs.assembly-version}}"
+ run: echo "${{steps.get-version.outputs.assembly-version}}"
+
+ - name: Parse Version
+ run: |
+ version='${{steps.get-version.outputs.assembly-version}}'
+ newVersion=${version%.*}
+ echo $newVersion
+ echo "::set-output name=VERSION::$newVersion"
+ id: parse-version
- name: Compile dotnet app
uses: actions/setup-dotnet@v1
@@ -75,6 +83,15 @@ jobs:
push: true
tags: kizaing/kavita:latest
+ - 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:${{ steps.parse-version.outputs.VERSION }}
+
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}