File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 6161 echo "image_name=$IMAGE_NAME" >> $GITHUB_OUTPUT
6262
6363 - name : Upload image to OpenStack from server
64+ id : upload
6465 if : success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/aktech/'))
6566 run : |
6667 ssh gpuserver "cd /tmp/repo-${{ github.run_id }} && make upload-${{ matrix.image-type }} BUILD_DIR=/tmp/vm-images-build-${{ github.run_id }} UV=/tmp/uv-${{ github.run_id }}/uv"
@@ -79,10 +80,12 @@ jobs:
7980 echo "✅ **Build Status:** Success" >> $GITHUB_STEP_SUMMARY
8081 echo "📦 **Image Name:** \`${{ steps.build.outputs.image_name }}\`" >> $GITHUB_STEP_SUMMARY
8182 echo "" >> $GITHUB_STEP_SUMMARY
82- if [ "${{ github.ref }}" == "refs/heads/main" ] || [[ "${{ github.ref }}" == refs/heads/aktech/* ]]; then
83- echo "☁️ **OpenStack Upload:** Enabled (main/aktech branch)" >> $GITHUB_STEP_SUMMARY
84- else
85- echo "⏭️ **OpenStack Upload:** Skipped (not main/aktech branch)" >> $GITHUB_STEP_SUMMARY
83+ if [ "${{ steps.upload.outcome }}" == "success" ]; then
84+ echo "☁️ **OpenStack Upload:** ✅ Success" >> $GITHUB_STEP_SUMMARY
85+ elif [ "${{ steps.upload.outcome }}" == "failure" ]; then
86+ echo "☁️ **OpenStack Upload:** ❌ Failed" >> $GITHUB_STEP_SUMMARY
87+ elif [ "${{ steps.upload.outcome }}" == "skipped" ]; then
88+ echo "☁️ **OpenStack Upload:** ⏭️ Skipped (not main/aktech branch)" >> $GITHUB_STEP_SUMMARY
8689 fi
8790 else
8891 echo "❌ **Build Status:** Failed" >> $GITHUB_STEP_SUMMARY
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ _upload:
9494 @echo " Uploading $( IMAGE_TYPE) image to OpenStack"
9595 @echo " ======================================"
9696 @cd $(BUILD_DIR ) -$(IMAGE_TYPE ) && \
97- source $(OPENSTACK_RC ) && \
97+ . $(OPENSTACK_RC ) && \
9898 IMAGE_FILE=$$(ls -1 *.qcow2 2>/dev/null | head -1 ) && \
9999 IMAGE_BASE=$$(basename $$IMAGE_FILE .qcow2) && \
100100 echo " Uploading $$ IMAGE_FILE..." && \
You can’t perform that action at this time.
0 commit comments