Skip to content

Commit

Permalink
Add helper script and self-submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Sep 5, 2024
1 parent 1e5c79a commit a28ab8b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "src/datalab"]
path = src/datalab
url = [email protected]:the-grey-group/datalab
[submodule "src/datalab-ansible-terraform"]
path = src/datalab-ansible-terraform
url = [email protected]:datalab-industries/datalab-ansible-terraform
2 changes: 1 addition & 1 deletion src/datalab
1 change: 1 addition & 0 deletions src/datalab-ansible-terraform
7 changes: 7 additions & 0 deletions sync-ansible-upstream.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e -u -o pipefail
commit=$(cd src/datalab-ansible-terraform && git describe --tags)
rsync --exclude vaults --exclude inventory.yml -avr src/datalab-ansible-terraform/ansible .
git add -p ansible
git add $(git ls-files ansible --others --exclude-standard)
git commit ansible -p -m "Sync with upstream definitions from datalab-ansible-terraform $commit"

0 comments on commit a28ab8b

Please sign in to comment.