File tree 4 files changed +9
-6
lines changed 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 61
61
echo "sshpubkey=$(cat id_rsa.pub | xargs)" >> $GITHUB_OUTPUT
62
62
63
63
- name : Download the ISO
64
+ working-directory : ./training/iso-builder/
64
65
run : |
65
66
make centos-iso-download
66
67
@@ -72,18 +73,19 @@ jobs:
72
73
echo "embedded_image=$(echo '${{ matrix.parent_image_registry }}/${{ matrix.parent_image_org }}/${{ matrix.parent_image_name }}:${{ matrix.parent_image_tag }}' | xargs)" >> $GITHUB_OUTPUT
73
74
echo "produced_image=$(echo '${{env.REGISTRY}}/${{env.REGISTRY_ORG}}/${{ matrix.iso_image_name }}:${{ matrix.parent_image_tag }}' | xargs)" >> $GITHUB_OUTPUT
74
75
76
+ - name : Run the Image
77
+ working-directory : ./training/iso-builder/
78
+ run : |
79
+ 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
80
+
75
81
- name : Setup tmate session
82
+ if : ${{ failure() }}
76
83
77
84
timeout-minutes : 10
78
85
with :
79
86
detached : false
80
87
limit-access-to-actor : true
81
88
82
- - name : Run the Image
83
- working-directory : ./training/iso-builder/
84
- run : |
85
- 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
86
-
87
89
# - name: Publish Job Results to Slack
88
90
# id: slack
89
91
# if: always()
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ recipes/common/bin/*
13
13
training /cloud /examples
14
14
training /instructlab /instructlab
15
15
training /iso-builder /ISOs /*
16
+ ! training /iso-builder /ISOs /.gitkeep
Original file line number Diff line number Diff line change 42
42
43
43
"${CONTAINER_TOOL}" run \
44
44
--rm \
45
- --volume $(shell readlink -f ISOs/ ${ORIGINAL_ISO}):/root/original.iso:ro \
45
+ --volume $(shell readlink -f ${ORIGINAL_ISO}):/root/original.iso:ro \
46
46
--volume ${OUTPUT_DIR}:/output \
47
47
--volume $(shell ${CONTAINER_TOOL} system info --format json | jq -r '.store.graphRoot'):/var/lib/containers/storage \
48
48
"${REGISTRY}/${REGISTRY_ORG}/${IMAGE_NAME}:${IMAGE_TAG}" \
You can’t perform that action at this time.
0 commit comments