Skip to content

Commit

Permalink
Add tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Nov 15, 2024
1 parent 293568e commit 316802a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/get-ci-image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 316802a

Please sign in to comment.