diff --git a/.github/workflows/nerdctl.yaml b/.github/workflows/nerdctl.yaml index 6abb0ab761..7ac098733d 100644 --- a/.github/workflows/nerdctl.yaml +++ b/.github/workflows/nerdctl.yaml @@ -26,9 +26,7 @@ jobs: env: JOB_NAME: "nerdctl-${{ matrix.deployment }}-${{ matrix.ipFamily }}" IP_FAMILY: ${{ matrix.ipFamily }} - NERDCTL_VERSION: "1.7.3" - CONTAINERD_VERSION: "1.7.13" - CNI_PLUGINS_VERSION: "1.3.0" + NERDCTL_VERSION: "1.7.4" KIND_EXPERIMENTAL_PROVIDER: "nerdctl" steps: - name: Check out code into the Go module directory @@ -52,17 +50,19 @@ jobs: - name: Install nerdctl run: | + # Remove Docker and Podman sudo systemctl is-active --quiet docker.service || systemctl stop docker.service - sudo apt-get remove -y docker-ce docker-ce-cli docker-buildx-plugin podman - # Install Containerd - sudo curl -sSL https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VERSION}/containerd-${CONTAINERD_VERSION}-linux-amd64.tar.gz|sudo tar -xvz -C /usr - sudo systemctl restart containerd.service + sudo apt-get remove -y docker-ce docker-ce-cli podman containerd.io + # Install nerdctl full package + sudo curl -sSL https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-full-${NERDCTL_VERSION}-linux-amd64.tar.gz | sudo tar -xvz -C /usr/local + # Start Containerd + sudo curl -sSL https://raw.githubusercontent.com/containerd/containerd/main/containerd.service > containerd.service + sudo mv containerd.service /etc/systemd/system + sudo systemctl daemon-reload + sudo systemctl enable --now containerd + # Show Versions sudo ctr version - # Install CNI - sudo mkdir -p /opt/cni/bin - sudo curl -sSL https://github.com/containernetworking/plugins/releases/download/v${CNI_PLUGINS_VERSION}/cni-plugins-linux-amd64-v${CNI_PLUGINS_VERSION}.tgz |sudo tar -xvz -C /opt/cni/bin - # Install nerdctl - sudo curl -sSL https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz|sudo tar -xvz -C /usr/local/bin + sudo nerdctl version - name: Create single node cluster if: ${{ matrix.deployment == 'singleNode' }} @@ -73,7 +73,7 @@ jobs: networking: ipFamily: ${IP_FAMILY} EOF - + - name: Create multi node cluster if: ${{ matrix.deployment == 'multiNode' }} run: |