-
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@b23226c
List of MorphoCloudWorkflow changes: ``` $ git shortlog 057c707..b23226c --no-merges Jean-Christophe Fillion-Robin (1): fix(create-instance): Ensure installed files are moved into attached volume ``` See MorphoCloud/MorphoCloudWorkflow@057c707...b23226c
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 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 |
---|---|---|
|
@@ -376,6 +376,30 @@ jobs: | |
attach_volume: ⏳ | ||
send_email: "" | ||
|
||
- name: Rename MyData directory to MyData-tmp | ||
id: rename_mydata | ||
run: | | ||
ssh \ | ||
-o StrictHostKeyChecking=no \ | ||
-o UserKnownHostsFile=/dev/null \ | ||
-o LogLevel=ERROR \ | ||
exouser@$INSTANCE_IP \ | ||
'mv /media/volume/MyData /media/volume/MyData-tmp' | ||
env: | ||
INSTANCE_IP: ${{ steps.ip_create.outputs.floating_ip_address }} | ||
|
||
- name: comment (failed to rename MyData) | ||
if: ${{ steps.rename_mydata.outcome == 'failure' && failure() }} | ||
uses: peter-evans/[email protected] | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
### Instance Creation Results ❌ | ||
Failed to rename `/media/volume/MyData` to `/media/volume/MyData-tmp` for instance **${{ steps.define.outputs.instance_name }}**. | ||
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
- name: Attach Volume | ||
id: attach_volume | ||
run: | | ||
|
@@ -419,6 +443,30 @@ jobs: | |
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
- name: Copy installed files into attached volume | ||
id: copy_installed_files | ||
run: | | ||
ssh \ | ||
-o StrictHostKeyChecking=no \ | ||
-o UserKnownHostsFile=/dev/null \ | ||
-o LogLevel=ERROR \ | ||
exouser@$INSTANCE_IP \ | ||
'mv /media/volume/MyData-tmp/Slicer /media/volume/MyData/Slicer && mv /media/volume/MyData-tmp/dist /media/volume/MyData/dist' | ||
env: | ||
INSTANCE_IP: ${{ steps.ip_create.outputs.floating_ip_address }} | ||
|
||
- name: comment (failed to copy installed files from MyData-tmp to MyData) | ||
if: ${{ steps.copy_installed_files.outcome == 'failure' && failure() }} | ||
uses: peter-evans/[email protected] | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
### Instance Creation Results ❌ | ||
Failed to copy installed files from `/media/volume/MyData-tmp` to `/media/volume/MyData` for instance **${{ steps.define.outputs.instance_name }}**. | ||
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 | ||
|