Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,32 +165,46 @@ jobs:

e2e:
runs-on: ubuntu-latest
name: e2e (${{ matrix.mode }}, ${{ matrix.channel }})
name: e2e (${{ matrix.mode }}, ${{ matrix.channel }}, ${{ matrix.store }})
strategy:
fail-fast: false
matrix:
include:
# current stable
# current stable, both image store backends: several digest-identity
# bugs only manifest on one of them (graphdriver vs containerd)
- mode: plugin
engine: 29
channel: stable
store: graphdriver
- mode: plugin
engine: 29
channel: stable
store: containerd
- mode: standalone
engine: 29
channel: stable
store: graphdriver
- mode: standalone
engine: 29
channel: stable
store: containerd

# old stable (latest major - 1)
- mode: plugin
engine: 28
channel: oldstable
store: graphdriver
- mode: standalone
engine: 28
channel: oldstable
store: graphdriver
steps:
- name: Prepare
run: |
mode=${{ matrix.mode }}
engine=${{ matrix.engine }}
echo "MODE_ENGINE_PAIR=${mode}-${engine}" >> $GITHUB_ENV
store=${{ matrix.store }}
echo "MODE_ENGINE_PAIR=${mode}-${engine}-${store}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -206,6 +220,20 @@ jobs:
- name: Check Docker Version
run: docker --version

- name: Enable containerd image store
if: ${{ matrix.store == 'containerd' }}
run: |
sudo mkdir -p /etc/docker
if [ -s /etc/docker/daemon.json ]; then
jq -s '.[0] * .[1]' /etc/docker/daemon.json <(echo '{"features": {"containerd-snapshotter": true}}') \
| sudo tee /etc/docker/daemon.json.new > /dev/null
sudo mv /etc/docker/daemon.json.new /etc/docker/daemon.json
else
echo '{"features": {"containerd-snapshotter": true}}' | sudo tee /etc/docker/daemon.json > /dev/null
fi
sudo systemctl restart docker.service
docker info -f '{{json .DriverStatus}}' | grep -q io.containerd.snapshotter.v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0

Expand Down
Loading