From 316802ab8ef619b322542b5f37ad5bd81eedfbc6 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 15 Nov 2024 01:19:21 +0000 Subject: [PATCH] Add tweaks Signed-off-by: Peter Zhu --- .github/workflows/get-ci-image-tag.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/get-ci-image-tag.yml b/.github/workflows/get-ci-image-tag.yml index 946f3bca75..2492cfb46e 100644 --- a/.github/workflows/get-ci-image-tag.yml +++ b/.github/workflows/get-ci-image-tag.yml @@ -25,6 +25,9 @@ on: ci-image-version-linux: description: The ci image version for linux build value: ${{ jobs.Get-CI-Image-Tag.outputs.output-ci-image-version-linux }} + ci-image-mount-volumes: + description: The ci image mount volumes to set after starting the container + value: ${{ jobs.Get-CI-Image-Tag.outputs.output-ci-image-mount-volumes }} ci-image-start-command: description: The ci image start commands to run after initialization value: ${{ jobs.Get-CI-Image-Tag.outputs.output-ci-image-start-command }} @@ -35,6 +38,7 @@ jobs: outputs: output-ci-image-version-linux: ${{ steps.step-ci-image-version-linux.outputs.ci-image-version-linux }} output-ci-image-start-command: ${{ steps.step-ci-image-start-command.outputs.ci-image-start-command }} + output-ci-image-mount-volumes: ${{ steps.step-ci-image-mount-volumes.outputs.ci-image-mount-volumes }} steps: - name: Install crane uses: iarekylew00t/crane-installer@v1 @@ -69,3 +73,8 @@ jobs: run: | CI_IMAGE_CMD="cp -a /node_al2/* /node && /node/bin/node -v" echo "ci-image-start-command=$CI_IMAGE_CMD" >> $GITHUB_OUTPUT + - name: Get ci image mount volumes based on requirements + id: step-ci-image-mount-volumes + run: | + CI_IMAGE_MOUNTS="/node:/node:rw,rshared,/node:/__e/node20:ro,rshared" + echo "ci-image-mount-volumes=$CI_IMAGE_MOUNTS" >> $GITHUB_OUTPUT