Use ubuntu-24.04 runner instead of ubuntu-latest

Create new /etc/docker/daemon.json to enable containerd image store
This commit is contained in:
Yuriy Kohut 2024-12-09 12:50:25 +02:00
parent b687bb7d02
commit 1f797cf5a3

View File

@ -66,7 +66,7 @@ env:
jobs: jobs:
build-test-push: build-test-push:
name: Deploy ${{ inputs.version_major }} ${{ matrix.image_types }} images name: Deploy ${{ inputs.version_major }} ${{ matrix.image_types }} images
runs-on: ubuntu-latest runs-on: ubuntu-24.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -142,9 +142,11 @@ jobs:
- -
name: Enable containerd image store on Docker Engine name: Enable containerd image store on Docker Engine
run: | run: |
# Use containerd image store # JQ file to switch into containerd image store
sudo jq '.features |= . + { "containerd-snapshotter": true }' /etc/docker/daemon.json > ./daemon.json.${{ env.date_stamp }} && \ cat << EOF > containerd-snapshotter.jq
sudo mv -f ./daemon.json.${{ env.date_stamp }} /etc/docker/daemon.json .features |= . + { "containerd-snapshotter": true }
EOF
sudo jq -n -f containerd-snapshotter.jq > /etc/docker/daemon.json
sudo systemctl restart docker sudo systemctl restart docker
docker info -f '{{ .DriverStatus }}' docker info -f '{{ .DriverStatus }}'
@ -397,7 +399,7 @@ jobs:
# 'default' or 'minimal' images only and 'Push to production' is checked # 'default' or 'minimal' images only and 'Push to production' is checked
if: ( inputs.type_default || inputs.type_minimal ) && inputs.production if: ( inputs.type_default || inputs.type_minimal ) && inputs.production
name: Optimize size of repository name: Optimize size of repository
runs-on: ubuntu-latest runs-on: ubuntu-24.04
needs: needs:
- build-test-push - build-test-push
steps: steps: