mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-19 08:28:19 +00:00
ci: Fix Docker publishing for CSI driver, 2nd try
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 <abombo@microsoft.com>
This commit is contained in:
parent
2a67038836
commit
a23ceac913
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
@ -136,7 +136,7 @@ jobs:
|
|||||||
file: tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile
|
file: tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile
|
||||||
|
|
||||||
publish-csi-driver-amd64:
|
publish-csi-driver-amd64:
|
||||||
needs: publish-kata-deploy-payload-amd64
|
needs: build-kata-static-tarball-amd64
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@ -160,12 +160,11 @@ jobs:
|
|||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-artifacts
|
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: |
|
run: |
|
||||||
|
# Copy to the location where the Dockerfile expects the binary.
|
||||||
mkdir -p src/tools/csi-kata-directvolume/bin/
|
mkdir -p src/tools/csi-kata-directvolume/bin/
|
||||||
# Hard link (Docker doesn't follow symlinks) to the location
|
cp /opt/kata/bin/csi-kata-directvolume src/tools/csi-kata-directvolume/bin/directvolplugin
|
||||||
# where the Dockerfile expects to find the binary.
|
|
||||||
ln -f /opt/kata/bin/csi-kata-directvolume src/tools/csi-kata-directvolume/bin/directvolplugin
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user