Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/fetch-from-gdrive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

apt-get install -y curl
workspace_archive_file_id="<ZIP_ID_FROM_GDRIVE>"
corrections_archive_file_id="<ZIP_ID_FROM_GDRIVE>"

# fetch from gdrive
# Archive must be in .tar.xz format
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faudrait proposer les mêmes options que l'Orb training-resource (https://github.com/Zenika-Training/training-resource-orb/blob/main/src/jobs/publish.yml#L24) avec différents modes de décompression (ou même aucun).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je regarde ça jeudi 🙂


cd ~ubuntu
curl -fsSL "https://drive.google.com/uc?export=download&id=${workspace_archive_file_id}" | tar xJf - # workspaces
curl -fsSL "https://drive.google.com/uc?export=download&id=${corrections_archive_file_id}" | tar xJf - # corrections
chown -R ubuntu workspaces corrections

# hide corrections

mv corrections .corrections