mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Updating action sources and major build versions (#2202)
* Updating action sources and major build versions * updating find pr to look at all prs
This commit is contained in:
parent
09883a1d35
commit
4e8a00c692
41
.github/workflows/build-and-test.yml
vendored
41
.github/workflows/build-and-test.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
@ -107,9 +107,10 @@ jobs:
|
|||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Find Current Pull Request
|
- name: Find Current Pull Request
|
||||||
uses: jwalton/gh-find-current-pr@v1.3.2
|
uses: jwalton/gh-find-current-pr@v1
|
||||||
id: findPr
|
id: findPr
|
||||||
with:
|
with:
|
||||||
|
state: all
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Parse PR body
|
- name: Parse PR body
|
||||||
@ -138,7 +139,7 @@ jobs:
|
|||||||
ref: develop
|
ref: develop
|
||||||
|
|
||||||
- name: NodeJS to Compile WebUI
|
- name: NodeJS to Compile WebUI
|
||||||
uses: actions/setup-node@v2.1.5
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
- run: |
|
- run: |
|
||||||
@ -155,7 +156,7 @@ jobs:
|
|||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Get csproj Version
|
- name: Get csproj Version
|
||||||
uses: naminodarie/get-net-sdk-project-versions-action@v1
|
uses: kzrnm/get-net-sdk-project-versions-action@v1
|
||||||
id: get-version
|
id: get-version
|
||||||
with:
|
with:
|
||||||
proj-path: Kavita.Common/Kavita.Common.csproj
|
proj-path: Kavita.Common/Kavita.Common.csproj
|
||||||
@ -193,15 +194,15 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
@ -231,9 +232,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Find Current Pull Request
|
- name: Find Current Pull Request
|
||||||
uses: jwalton/gh-find-current-pr@v1.0.2
|
uses: jwalton/gh-find-current-pr@v1
|
||||||
id: findPr
|
id: findPr
|
||||||
with:
|
with:
|
||||||
|
state: all
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Parse PR body
|
- name: Parse PR body
|
||||||
@ -263,7 +265,7 @@ jobs:
|
|||||||
ref: main
|
ref: main
|
||||||
|
|
||||||
- name: NodeJS to Compile WebUI
|
- name: NodeJS to Compile WebUI
|
||||||
uses: actions/setup-node@v2.1.5
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
- run: |
|
- run: |
|
||||||
@ -281,7 +283,7 @@ jobs:
|
|||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Get csproj Version
|
- name: Get csproj Version
|
||||||
uses: naminodarie/get-net-sdk-project-versions-action@v1
|
uses: kzrnm/get-net-sdk-project-versions-action@v1
|
||||||
id: get-version
|
id: get-version
|
||||||
with:
|
with:
|
||||||
proj-path: Kavita.Common/Kavita.Common.csproj
|
proj-path: Kavita.Common/Kavita.Common.csproj
|
||||||
@ -320,15 +322,15 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
@ -357,9 +359,10 @@ jobs:
|
|||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/canary' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/canary' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Find Current Pull Request
|
- name: Find Current Pull Request
|
||||||
uses: jwalton/gh-find-current-pr@v1.0.2
|
uses: jwalton/gh-find-current-pr@v1
|
||||||
id: findPr
|
id: findPr
|
||||||
with:
|
with:
|
||||||
|
state: all
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Check Out Repo
|
- name: Check Out Repo
|
||||||
@ -368,7 +371,7 @@ jobs:
|
|||||||
ref: canary
|
ref: canary
|
||||||
|
|
||||||
- name: NodeJS to Compile WebUI
|
- name: NodeJS to Compile WebUI
|
||||||
uses: actions/setup-node@v2.1.5
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
- run: |
|
- run: |
|
||||||
@ -385,7 +388,7 @@ jobs:
|
|||||||
cd ../ || exit
|
cd ../ || exit
|
||||||
|
|
||||||
- name: Get csproj Version
|
- name: Get csproj Version
|
||||||
uses: naminodarie/get-net-sdk-project-versions-action@v1
|
uses: kzrnm/get-net-sdk-project-versions-action@v1
|
||||||
id: get-version
|
id: get-version
|
||||||
with:
|
with:
|
||||||
proj-path: Kavita.Common/Kavita.Common.csproj
|
proj-path: Kavita.Common/Kavita.Common.csproj
|
||||||
@ -423,15 +426,15 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user