-
Notifications
You must be signed in to change notification settings - Fork 0
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@7fee216
List of MorphoCloudWorkflow changes: ``` $ git shortlog MorphoCloud/MorphoCloudWorkflow@2c82cc3..MorphoCloud/MorphoCloudWorkflow@7fee216 --no-merges Jean-Christophe Fillion-Robin (3): feat: Attach 60GB volume fix(attach volume): Customize mountpoint setting exoVolumes property fix(create volume): Prevent duplicated volume creation fixing condition ```
- Loading branch information
Showing
6 changed files
with
239 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Check volume exists" | ||
description: "Check volume exists" | ||
inputs: | ||
volume_name: | ||
description: "Name of the volume" | ||
required: true | ||
outputs: | ||
exists: | ||
description: "Set to 'true' or 'false'" | ||
value: ${{ steps.check_volume.outputs.exists }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check volume exists | ||
id: check_volume | ||
shell: bash | ||
run: | | ||
export OS_CLOUD=BIO180006_IU # Select openstack auth settings defined in ".config/openstack/clouds.yaml" | ||
source ~/venv/bin/activate | ||
volume=$(openstack volume list -f json | \ | ||
jq \ | ||
--arg volume_name "$VOLUME_NAME" \ | ||
-c '.[] | select(.Name != null) | select(.Name == $volume_name)' | \ | ||
jq -r '.Name' | tail -1) | ||
[[ $volume == "$VOLUME_NAME" ]] && exists="true" || exists="false" | ||
echo "exists [$exists]" | ||
echo "exists=$exists" >> $GITHUB_OUTPUT | ||
env: | ||
VOLUME_NAME: ${{ inputs.volume_name }} |
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Define volume name" | ||
description: "Define volume name" | ||
inputs: | ||
issue_number: | ||
description: "Issue number used to set the volume name" | ||
required: true | ||
suffix: | ||
description: | ||
"Optional string to append. If suffix is not empty, output is of the form | ||
'My-Data-NNN-<SUFFIX>'." | ||
outputs: | ||
volume_name: | ||
description: | ||
"Name of the volume formatted as 'My-Data-NNN[-<SUFFIX>]' where 'NNN' is | ||
the issue number" | ||
value: ${{ steps.define.outputs.volume_name }} | ||
volume_suffix: | ||
description: | ||
"If input suffix is not empty, volume suffix is set to '-<SUFFIX>'" | ||
value: ${{ steps.define.outputs.volume_suffix }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Define volume name" | ||
id: define | ||
shell: bash | ||
run: | | ||
volume_suffix=${SUFFIX:+-${SUFFIX}} | ||
volume_name="My-Data-$ISSUE_NUMBER${volume_suffix}" | ||
echo "volume_name=$volume_name" >> $GITHUB_OUTPUT | ||
echo "volume_suffix=$volume_suffix" >> $GITHUB_OUTPUT | ||
env: | ||
ISSUE_NUMBER: ${{ inputs.issue_number }} | ||
SUFFIX: ${{ inputs.suffix }} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
### Instance Creation Progress {{ .status }} | ||
|
||
| Create IP | Create Instance | Associate IP | Setup Instance | Retrieve Connection URL | Send Email | | ||
| :--------------: | :--------------------: | :-----------------: | :-------------------: | :---------------------------: | :---------------: | | ||
| {{ .create_ip }} | {{ .create_instance }} | {{ .associate_ip }} | {{ .setup_instance }} | {{ .retrieve_connection_url}} | {{ .send_email }} | | ||
| Create IP | Create Volume | Create Instance | Associate IP | Setup Instance | Attach volume | Retrieve Connection URL | Send Email | | ||
| :--------------: | :------------------: | :--------------------: | :-----------------: | :-------------------: | :------------------: | :---------------------------: | :---------------: | | ||
| {{ .create_ip }} | {{ .create_volume }} | {{ .create_instance }} | {{ .associate_ip }} | {{ .setup_instance }} | {{ .attach_volume }} | {{ .retrieve_connection_url}} | {{ .send_email }} | | ||
|
||
See details at {{ .details_url }} |
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
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