Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
List of MorphoCloudWorkflow changes:

```
$ git shortlog b64b997..fc1e1d7 --no-merges
Jean-Christophe Fillion-Robin (1):
      feat(create-instance): Set instance properties like "exoSetup" only after reboot
```

See MorphoCloud/MorphoCloudWorkflow@b64b997...fc1e1d7
  • Loading branch information
jcfr committed Feb 3, 2025
1 parent 8d5010c commit c07f33e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/create-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,34 @@ jobs:
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.set_instance_properties.outcome == 'failure' && failure() }}
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.issue.number }}
body: |
### Instance Creation Results ❌
Failed to set instance properties.
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Update Request Status Label
id: update-request-status-label
uses: ./.github/actions/update-request-status-label
Expand Down

0 comments on commit c07f33e

Please sign in to comment.