From 1f797cf5a30119e8c410728d7bd676d8fa5a9c49 Mon Sep 17 00:00:00 2001 From: Yuriy Kohut Date: Mon, 9 Dec 2024 12:50:25 +0200 Subject: [PATCH] Use ubuntu-24.04 runner instead of ubuntu-latest Create new /etc/docker/daemon.json to enable containerd image store --- .github/workflows/build-test-push.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-test-push.yml b/.github/workflows/build-test-push.yml index 45e531c..3c00d26 100644 --- a/.github/workflows/build-test-push.yml +++ b/.github/workflows/build-test-push.yml @@ -66,7 +66,7 @@ env: jobs: build-test-push: name: Deploy ${{ inputs.version_major }} ${{ matrix.image_types }} images - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -142,9 +142,11 @@ jobs: - name: Enable containerd image store on Docker Engine run: | - # Use containerd image store - sudo jq '.features |= . + { "containerd-snapshotter": true }' /etc/docker/daemon.json > ./daemon.json.${{ env.date_stamp }} && \ - sudo mv -f ./daemon.json.${{ env.date_stamp }} /etc/docker/daemon.json + # JQ file to switch into containerd image store + cat << EOF > containerd-snapshotter.jq + .features |= . + { "containerd-snapshotter": true } + EOF + sudo jq -n -f containerd-snapshotter.jq > /etc/docker/daemon.json sudo systemctl restart docker docker info -f '{{ .DriverStatus }}' @@ -397,7 +399,7 @@ jobs: # 'default' or 'minimal' images only and 'Push to production' is checked if: ( inputs.type_default || inputs.type_minimal ) && inputs.production name: Optimize size of repository - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - build-test-push steps: