Fixed file pathing for automated docker builds (#323)
This commit is contained in:
parent
be2b78fa5a
commit
af8c6c2cb9
3 changed files with 12 additions and 6 deletions
1
.github/workflows/nightly-docker.yml
vendored
1
.github/workflows/nightly-docker.yml
vendored
|
|
@ -28,7 +28,6 @@ jobs:
|
||||||
cd Kavita-webui/ || exit
|
cd Kavita-webui/ || exit
|
||||||
npm install
|
npm install
|
||||||
npm run prod
|
npm run prod
|
||||||
mv dist/ ../API/wwwroot
|
|
||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Compile dotnet app
|
- name: Compile dotnet app
|
||||||
|
|
|
||||||
13
.github/workflows/stable-docker.yml
vendored
13
.github/workflows/stable-docker.yml
vendored
|
|
@ -28,7 +28,6 @@ jobs:
|
||||||
cd Kavita-webui/ || exit
|
cd Kavita-webui/ || exit
|
||||||
npm install
|
npm install
|
||||||
npm run prod
|
npm run prod
|
||||||
mv dist/ ../API/wwwroot
|
|
||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Compile dotnet app
|
- name: Compile dotnet app
|
||||||
|
|
@ -61,3 +60,15 @@ jobs:
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
|
||||||
|
- 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 stable build has been released for docker.
|
||||||
|
webhookUrl: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}
|
||||||
|
|
@ -21,7 +21,6 @@ Build()
|
||||||
|
|
||||||
slnFile=Kavita.sln
|
slnFile=Kavita.sln
|
||||||
|
|
||||||
dotnet clean $slnFile -c Debug
|
|
||||||
dotnet clean $slnFile -c Release
|
dotnet clean $slnFile -c Release
|
||||||
|
|
||||||
dotnet msbuild -restore $slnFile -p:Configuration=Release -p:Platform="Any CPU" -p:RuntimeIdentifiers=$RID
|
dotnet msbuild -restore $slnFile -p:Configuration=Release -p:Platform="Any CPU" -p:RuntimeIdentifiers=$RID
|
||||||
|
|
@ -49,9 +48,6 @@ Package()
|
||||||
echo "Copying LICENSE"
|
echo "Copying LICENSE"
|
||||||
cp ../LICENSE "$lOutputFolder"/LICENSE.txt
|
cp ../LICENSE "$lOutputFolder"/LICENSE.txt
|
||||||
|
|
||||||
echo "Renaming API -> Kavita"
|
|
||||||
mv "$lOutputFolder"/API "$lOutputFolder"/Kavita
|
|
||||||
|
|
||||||
echo "Creating tar"
|
echo "Creating tar"
|
||||||
cd ../$outputFolder/"$runtime"/
|
cd ../$outputFolder/"$runtime"/
|
||||||
tar -czvf ../kavita-$runtime.tar.gz Kavita
|
tar -czvf ../kavita-$runtime.tar.gz Kavita
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue