Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
jcfr committed Feb 3, 2025
1 parent 8d5010c commit d169fef
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/create-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d169fef

Please sign in to comment.