From a23ceac913782bc34533eba652c51e8eded83bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Tue, 3 Dec 2024 13:00:05 -0600 Subject: [PATCH] ci: Fix Docker publishing for CSI driver, 2nd try MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #10609 as it seems GHA doesn't allow hard links: https://github.com/kata-containers/kata-containers/actions/runs/12144941404/job/33868901896?pr=10563#step:6:8 Note that I also updated the `needs` directive as we don't need the Kata payload container, just the tarball artifact. Part of: #10560 Signed-off-by: Aurélien Bombo --- .github/workflows/ci.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9fbb6d7ac4..a3c8b6e745 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -136,7 +136,7 @@ jobs: file: tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile publish-csi-driver-amd64: - needs: publish-kata-deploy-payload-amd64 + needs: build-kata-static-tarball-amd64 runs-on: ubuntu-22.04 steps: - name: Checkout code @@ -160,12 +160,11 @@ jobs: - name: Install tools run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-artifacts - - name: Link binary into Docker context + - name: Copy binary into Docker context run: | + # Copy to the location where the Dockerfile expects the binary. mkdir -p src/tools/csi-kata-directvolume/bin/ - # Hard link (Docker doesn't follow symlinks) to the location - # where the Dockerfile expects to find the binary. - ln -f /opt/kata/bin/csi-kata-directvolume src/tools/csi-kata-directvolume/bin/directvolplugin + cp /opt/kata/bin/csi-kata-directvolume src/tools/csi-kata-directvolume/bin/directvolplugin - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3