Skip to content

Commit

Permalink
Update runner ubuntu version
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 18, 2024
1 parent 253e52c commit e8a26ff
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
Expand Down
35 changes: 28 additions & 7 deletions .github/workflows/workflow-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ jobs:
doc-deploy:
name: Documentation - Deploy
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.doc_deploy) && (github.ref_name == 'master' || github.ref_name == 'beta') }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Extract references from context
shell: bash
id: extract-refs
Expand All @@ -86,7 +89,7 @@ jobs:
npm-deploy:
name: Build and deploy release on NPM.js
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.npm_deploy) && (github.ref_name == 'master' || github.ref_name == 'beta') }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
contents: write
issues: write
Expand All @@ -95,6 +98,9 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ inputs.node_lts_current_version }}
uses: actions/setup-node@v4
with:
Expand All @@ -119,13 +125,16 @@ jobs:
publish-runner:
name: Kuzzle runner Docker image
needs: [npm-deploy]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -151,11 +160,14 @@ jobs:
publish-plugin-dev:
name: Kuzzle plugin-dev Docker image
needs: [npm-deploy]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down Expand Up @@ -188,11 +200,14 @@ jobs:
publish-kuzzle-core:
name: Kuzzle core Docker image
needs: [npm-deploy]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down Expand Up @@ -225,10 +240,13 @@ jobs:
publish-core-dev:
name: Kuzzle core-dev Docker image
needs: [npm-deploy]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -255,10 +273,13 @@ jobs:
publish-elasticsearch:
name: Elasticsearch Docker image
needs: [npm-deploy]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
32 changes: 25 additions & 7 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
jobs:
prepare-matrix:
name: Forge Node LTS Matrix
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- id: set-matrix
run: |
Expand All @@ -35,11 +35,14 @@ jobs:
error-codes-check:
name: Documentation - Error codes check
needs: [prepare-matrix]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ env.NODE_LTS_ACTIVE_VERSION }}
uses: actions/setup-node@v4
with:
Expand All @@ -54,7 +57,7 @@ jobs:

lint:
name: Lint - Node.js
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
needs: [prepare-matrix]
strategy:
matrix:
Expand All @@ -63,6 +66,9 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -83,11 +89,14 @@ jobs:
strategy:
matrix:
node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -102,7 +111,7 @@ jobs:
build-and-run-kuzzle:
needs: [lint, prepare-matrix]
name: Build and Run
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
kuzzle-image: ["kuzzle"]
Expand All @@ -111,6 +120,9 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Test to run Kuzzle image
uses: ./.github/actions/build-and-run-kuzzle
with:
Expand All @@ -125,11 +137,14 @@ jobs:
test-set: ${{ fromJson(needs.prepare-matrix.outputs.test-set).test-set }}
node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }}
es-version: ${{ fromJson(needs.prepare-matrix.outputs.es-matrix).es-version }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -146,7 +161,7 @@ jobs:
cluster-monkey-tests:
name: Cluster Monkey Tests
needs: [functional-tests, build-and-run-kuzzle, prepare-matrix]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }}
Expand All @@ -155,6 +170,9 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Cloning Monkey Tester
uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions docker/images/core-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ RUN set -x \
git \
gnupg \
libfontconfig \
libunwind-dev \
libzmq3-dev \
python3 \
procps \
python3 \
wget \
libunwind-dev \
&& npm install -g kourou \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
6 changes: 2 additions & 4 deletions docker/images/kuzzle-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ RUN set -x \
git \
gnupg \
libfontconfig \
libunwind-dev \
libzmq3-dev \
python3 \
procps \
python3 \
wget \
libunwind-dev \
&& npm install -g kourou \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN npm i -g kourou

0 comments on commit e8a26ff

Please sign in to comment.