From ce7aa8008a530dbc535c46720f97bb9898b7049e Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Fri, 20 Dec 2024 09:26:26 +0100 Subject: [PATCH] Fix runner image to ubuntu 22.04 --- .github/workflows/continuous-integration-workflow.yml | 10 +++++++++- .github/workflows/delete-deployed-pr.yml | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index eac03fc2..18abf26f 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -15,7 +15,15 @@ env: jobs: build: name: Jekyll Build - runs-on: ubuntu-latest + # Fix to ubuntu 22.04. In 2027, at the EOL of that distro, this GH warning will have to be addressed: + # The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported). + # In such a case, you should install Ruby in the $RUNNER_TOOL_CACHE yourself, for example using https://github.com/rbenv/ruby-build + # You can take inspiration from this workflow for more details: https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml + # $ ruby-build 3.1.4 /opt/hostedtoolcache/Ruby/3.1.4/x64 + # Once that completes successfully, mark it as complete with: + # $ touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete + # It is your responsibility to ensure installing Ruby like that is not done in parallel. + runs-on: ubuntu-22.04 steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/.github/workflows/delete-deployed-pr.yml b/.github/workflows/delete-deployed-pr.yml index b1e8bbfc..649f1a03 100644 --- a/.github/workflows/delete-deployed-pr.yml +++ b/.github/workflows/delete-deployed-pr.yml @@ -6,7 +6,15 @@ on: jobs: delete_deployed_pr: - runs-on: ubuntu-latest + # Fix to ubuntu 22.04. In 2027, at the EOL of that distro, this GH warning will have to be addressed: + # The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported). + # In such a case, you should install Ruby in the $RUNNER_TOOL_CACHE yourself, for example using https://github.com/rbenv/ruby-build + # You can take inspiration from this workflow for more details: https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml + # $ ruby-build 3.1.4 /opt/hostedtoolcache/Ruby/3.1.4/x64 + # Once that completes successfully, mark it as complete with: + # $ touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete + # It is your responsibility to ensure installing Ruby like that is not done in parallel. + runs-on: ubuntu-22.04 # PRs are only deployed if the PR branch is not in a fork if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} steps: