Skip to content

Commit

Permalink
adding ISOs dir and updating workflow
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 6, 2024
1 parent 5ab7d7a commit b53e4c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/iso_builder_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
echo "sshpubkey=$(cat id_rsa.pub | xargs)" >> $GITHUB_OUTPUT
- name: Download the ISO
working-directory: ./training/iso-builder/
run: |
make centos-iso-download
Expand All @@ -72,18 +73,19 @@ jobs:
echo "embedded_image=$(echo '${{ matrix.parent_image_registry }}/${{ matrix.parent_image_org }}/${{ matrix.parent_image_name }}:${{ matrix.parent_image_tag }}' | xargs)" >> $GITHUB_OUTPUT
echo "produced_image=$(echo '${{env.REGISTRY}}/${{env.REGISTRY_ORG}}/${{ matrix.iso_image_name }}:${{ matrix.parent_image_tag }}' | xargs)" >> $GITHUB_OUTPUT
- name: Run the Image
working-directory: ./training/iso-builder/
run: |
make iso IMAGE=${{ steps.build_image.outputs.produced_image }} EMBED_IMAGE=${{ steps.build_image.outputs.embedded_image }} ORIGINAL_ISO="ISOs/${{ matrix.iso_name }}" SSHKEY="${{ steps.ssh-keygen.outputs.sshpubkey }}" CONTAINER_TOOL_EXTRA_ARGS=--pull=never
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/[email protected]
timeout-minutes: 10
with:
detached: false
limit-access-to-actor: true

- name: Run the Image
working-directory: ./training/iso-builder/
run: |
make iso IMAGE=${{ steps.build_image.outputs.produced_image }} EMBED_IMAGE=${{ steps.build_image.outputs.embedded_image }} ORIGINAL_ISO=ISOs/${{ matrix.iso_name }} SSHKEY=${{ steps.ssh-keygen.outputs.sshpubkey }} CONTAINER_TOOL_EXTRA_ARGS=--pull=never
# - name: Publish Job Results to Slack
# id: slack
# if: always()
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ recipes/common/bin/*
training/cloud/examples
training/instructlab/instructlab
training/iso-builder/ISOs/*
!training/iso-builder/ISOs/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion training/iso-builder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ iso:

"${CONTAINER_TOOL}" run \
--rm \
--volume $(shell readlink -f ISOs/${ORIGINAL_ISO}):/root/original.iso:ro \
--volume $(shell readlink -f ${ORIGINAL_ISO}):/root/original.iso:ro \
--volume ${OUTPUT_DIR}:/output \
--volume $(shell ${CONTAINER_TOOL} system info --format json | jq -r '.store.graphRoot'):/var/lib/containers/storage \
"${REGISTRY}/${REGISTRY_ORG}/${IMAGE_NAME}:${IMAGE_TAG}" \
Expand Down

0 comments on commit b53e4c3

Please sign in to comment.