Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy homepage hydro nbs #24

Merged
merged 6 commits into from
Jun 12, 2024
Merged

Deploy homepage hydro nbs #24

merged 6 commits into from
Jun 12, 2024

Conversation

tlvu
Copy link
Collaborator

@tlvu tlvu commented Jun 12, 2024

Need bird-house/birdhouse-deploy#462 to be merged first.

tlvu added 6 commits June 6, 2024 19:35
…e path outside of checkout

CHECKOUT_CACHE vars works in actions.

Requires the following fix on birdhouse-deploy repo:
```
$ git show
commit a5e0340a11854c87ed04bdbec11209a3e9aaae12 (HEAD -> improve-deploy-data-flexibility, origin/improve-deploy-data-flexibility)
Author: Long Vu <vu.long@ouranos.ca>
Date:   Fri Jun 7 16:57:19 2024 -0400

    deploy-data: support rsync src_dir already absolute path

diff --git a/birdhouse/deployment/deploy-data b/birdhouse/deployment/deploy-data
index cc1e8879..525bac4c 100755
--- a/birdhouse/deployment/deploy-data
+++ b/birdhouse/deployment/deploy-data
@@ -151,6 +151,13 @@ for GIT_REPO_URL in $GIT_REPO_URLS; do
         echo "sync '$SRC_DIR' to '$DEST_DIR'"
         DEST_DIR_PARENT="`dirname "$DEST_DIR"`"
         SRC_DIR_ABS_PATH="`pwd`/$SRC_DIR"
+        if [ ! -e "$SRC_DIR_ABS_PATH" ]; then
+            # SRC_DIR could already be absolute.
+            # Support rsync from source outside of current checkout, from other
+            # checkouts in same config file because config file can have
+            # multiple checkouts.
+            SRC_DIR_ABS_PATH="$SRC_DIR"
+        fi
         USER_ID="`id -u`"
         GROUP_ID="`id -g`"
         RSYNC_USER_GRP="$USER_ID:$GROUP_ID"
```
@tlvu tlvu merged commit 98ff548 into master Jun 12, 2024
@tlvu tlvu deleted the deploy-homepage-hydro-nbs branch June 12, 2024 20:43
tlvu added a commit to Ouranosinc/PAVICS-landing that referenced this pull request Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant