diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f08f361d7..8893e8f78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,8 @@ jobs: test: name: Lint & Test Build if: github.event_name == 'pull_request' - runs-on: ubuntu-20.04 - container: node:20.9-alpine + runs-on: ubuntu-22.04 + container: node:18.18-alpine steps: - name: Checkout uses: actions/checkout@v3 @@ -31,7 +31,7 @@ jobs: build_and_push: name: Build & Publish Docker Images if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, '[skip ci]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -66,7 +66,7 @@ jobs: name: Send Discord Notification needs: build_and_push if: always() && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Get Build Job Status uses: technote-space/workflow-conclusion-action@v3 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 3797936af..fa71c2941 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -8,7 +8,7 @@ on: jobs: build_and_push: name: Build & Publish Docker Preview Images - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94ba679b8..449b3e74d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: workflow_dispatch jobs: semantic-release: name: Tag and release latest version - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: HUSKY: 0 steps: @@ -38,7 +38,7 @@ jobs: build-snap: name: Build Snap Package (${{ matrix.architecture }}) needs: semantic-release - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -94,7 +94,7 @@ jobs: name: Send Discord Notification needs: semantic-release if: always() - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Get Build Job Status uses: technote-space/workflow-conclusion-action@v3 diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index 9c5b143b1..0aaa9a651 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -8,7 +8,7 @@ on: jobs: jobs: name: Job Check - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: "!contains(github.event.head_commit.message, '[skip ci]')" steps: - name: Cancel Previous Runs @@ -19,7 +19,7 @@ jobs: build-snap: name: Build Snap Package (${{ matrix.architecture }}) needs: jobs - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -69,7 +69,7 @@ jobs: name: Send Discord Notification needs: build-snap if: always() && !contains(github.event.head_commit.message, '[skip ci]') - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Get Build Job Status uses: technote-space/workflow-conclusion-action@v3 diff --git a/Dockerfile b/Dockerfile index 85b703062..949bf5962 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.9-alpine AS BUILD_IMAGE +FROM node:18.18-alpine AS BUILD_IMAGE WORKDIR /app @@ -8,7 +8,9 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64} RUN \ case "${TARGETPLATFORM}" in \ 'linux/arm64' | 'linux/arm/v7') \ - apk add --no-cache python3 make g++ \ + apk update && \ + apk add --no-cache python3 make g++ gcc libc6-compat bash && \ + yarn global add node-gyp \ ;; \ esac @@ -32,7 +34,7 @@ RUN touch config/DOCKER RUN echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json -FROM node:20.9-alpine +FROM node:18.18-alpine WORKDIR /app diff --git a/Dockerfile.local b/Dockerfile.local index 0edc660bf..7efa68b51 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -1,4 +1,4 @@ -FROM node:20.9-alpine +FROM node:18.18-alpine COPY . /app WORKDIR /app diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4f649ebba..368c139ba 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -17,9 +17,9 @@ architectures: parts: jellyseerr: plugin: nodejs - nodejs-version: '20.9.0' + nodejs-version: '18.18.2' nodejs-package-manager: 'yarn' - nodejs-yarn-version: v1.22.17 + nodejs-yarn-version: v1.22.19 build-packages: - git - on arm64: