-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update to MorphoCloud/MorphoCloudWorkflow@e52143d
List of MorphoCloudWorkflow changes: ``` $ git shortlog b64b997..e52143d --no-merges Jean-Christophe Fillion-Robin (2): feat(create-instance): Set instance properties like "exoSetup" only after reboot fix(create-instance): Fix step checking if reboot was successful ``` See MorphoCloud/MorphoCloudWorkflow@b64b997...e52143d
- Loading branch information
Showing
1 changed file
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -573,17 +573,43 @@ jobs: | |
INSTANCE_IP: ${{ steps.ip_create.outputs.floating_ip_address }} | ||
INSTANCE_NAME: ${{ steps.define.outputs.instance_name }} | ||
|
||
- name: comment (failed to install Slicer extension dependencies) | ||
- name: comment (failed to reboot instance) | ||
if: ${{ steps.reboot_instance.outcome == 'failure' && failure() }} | ||
uses: peter-evans/[email protected] | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
### Instance Creation Results ❌ | ||
Failed to reboot instance **${{ steps.define.outputs.instance_name }}**. | ||
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
- name: Set instance properties | ||
id: set_instance_properties | ||
run: | | ||
source ~/venv/bin/activate | ||
# Explicitly set status to complete | ||
exoSetup='{"status":"complete", "epoch": '$(date '+%s')'000}' | ||
openstack server set \ | ||
--property "exoSetup=$exoSetup" \ | ||
$INSTANCE_NAME | ||
env: | ||
OS_CLOUD: ${{ vars.MORPHOCLOUD_OS_CLOUD }} | ||
INSTANCE_NAME: ${{ steps.define.outputs.instance_name }} | ||
|
||
- name: comment (failed to set instance properties) | ||
if: | ||
${{ steps.slicer_install_extension_dependencies.outcome == 'failure' | ||
&& failure() }} | ||
${{ steps.set_instance_properties.outcome == 'failure' && failure() }} | ||
uses: peter-evans/[email protected] | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
### Instance Creation Results ❌ | ||
Failed to install Slicer extension dependencies on instance **${{ steps.define.outputs.instance_name }}**. | ||
Failed to set instance **${{ steps.define.outputs.instance_name }}** properties. | ||
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
|