Compare commits

..

3 Commits

Author SHA1 Message Date
Yuriy Kohut
14d75363bb
Build AlmaLinux release 10.0 images (#29)
Temporary set SYSBASE for 10.0 into quay.io/ykohut/almalinux:10-bootstrap

Fix /etc/docker/daemon.json creation. Code clean up.
2024-12-09 14:52:15 +01:00
619411ffa4
Merge pull request #28 from yuravk/main
Use ubuntu-24.04 runner instead of ubuntu-latest
2024-12-09 13:01:21 +01:00
Yuriy Kohut
1f797cf5a3 Use ubuntu-24.04 runner instead of ubuntu-latest
Create new /etc/docker/daemon.json to enable containerd image store
2024-12-09 13:33:38 +02:00

View File

@ -17,7 +17,7 @@ on:
default: '10'
type: choice
options:
- "10-kitten"
- 10-kitten
- 10
- 9
- 8
@ -62,13 +62,12 @@ env:
# Registries list:
# for production: docker.io/almalinux, quay.io/almalinuxorg, ghcr.io/almalinux
# for testing: quay.io/almalinuxautobot
# registries: ${{ inputs.production && 'docker.io/almalinux, quay.io/almalinuxorg, ghcr.io/almalinux' || 'quay.io/almalinuxautobot' }}
registries: ${{ inputs.production && 'docker.io/ykohut, quay.io/ykohut, ghcr.io/yuravk' || 'quay.io/ykohut' }}
registries: ${{ inputs.production && 'docker.io/almalinux, quay.io/almalinuxorg, ghcr.io/almalinux' || 'quay.io/almalinuxautobot' }}
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:
@ -144,9 +143,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 sh -c 'jq -n -f containerd-snapshotter.jq > /etc/docker/daemon.json'
sudo systemctl restart docker
docker info -f '{{ .DriverStatus }}'
@ -399,7 +400,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: