Merge pull request #5139 from thaJeztah/gha_ubuntu_2404

gha: switch to Ubuntu 24.04
This commit is contained in:
Sebastiaan van Stijn 2024-06-11 15:11:16 +02:00 committed by GitHub
commit 0022fe7111
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 12 deletions

View File

@ -19,7 +19,7 @@ on:
jobs: jobs:
prepare: prepare:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
outputs: outputs:
matrix: ${{ steps.platforms.outputs.matrix }} matrix: ${{ steps.platforms.outputs.matrix }}
steps: steps:
@ -37,7 +37,7 @@ jobs:
echo ${{ steps.platforms.outputs.matrix }} echo ${{ steps.platforms.outputs.matrix }}
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- prepare - prepare
strategy: strategy:
@ -90,7 +90,7 @@ jobs:
if-no-files-found: error if-no-files-found: error
bin-image: bin-image:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: ${{ github.event_name != 'pull_request' && github.repository == 'docker/cli' }} if: ${{ github.event_name != 'pull_request' && github.repository == 'docker/cli' }}
steps: steps:
- -
@ -134,7 +134,7 @@ jobs:
*.cache-to=type=gha,scope=bin-image,mode=max *.cache-to=type=gha,scope=bin-image,mode=max
prepare-plugins: prepare-plugins:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
outputs: outputs:
matrix: ${{ steps.platforms.outputs.matrix }} matrix: ${{ steps.platforms.outputs.matrix }}
steps: steps:
@ -152,7 +152,7 @@ jobs:
echo ${{ steps.platforms.outputs.matrix }} echo ${{ steps.platforms.outputs.matrix }}
plugins: plugins:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
needs: needs:
- prepare-plugins - prepare-plugins
strategy: strategy:

View File

@ -16,7 +16,7 @@ on:
jobs: jobs:
e2e: e2e:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -40,8 +40,15 @@ jobs:
- -
name: Update daemon.json name: Update daemon.json
run: | run: |
sudo jq '.experimental = true' < /etc/docker/daemon.json > /tmp/docker.json if [ ! -f /etc/docker/daemon.json ]; then
sudo mv /tmp/docker.json /etc/docker/daemon.json # ubuntu 24.04 runners no longer have a default daemon.json present
sudo mkdir -p /etc/docker/
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
else
# but if there is one; let's patch it to keep other options that may be set.
sudo jq '.experimental = true' < /etc/docker/daemon.json > /tmp/docker.json
sudo mv /tmp/docker.json /etc/docker/daemon.json
fi
sudo cat /etc/docker/daemon.json sudo cat /etc/docker/daemon.json
sudo service docker restart sudo service docker restart
docker version docker version

View File

@ -16,7 +16,7 @@ on:
jobs: jobs:
ctn: ctn:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- -
name: Checkout name: Checkout

View File

@ -16,7 +16,7 @@ on:
jobs: jobs:
validate: validate:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -37,7 +37,7 @@ jobs:
# check that the generated Markdown and the checked-in files match # check that the generated Markdown and the checked-in files match
validate-md: validate-md:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- -
name: Checkout name: Checkout
@ -57,7 +57,7 @@ jobs:
fi fi
validate-make: validate-make:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix: