-
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.
Modified behaviour to do asset-management for all branches
- Loading branch information
Mark Do
committed
Jun 5, 2024
1 parent
071d748
commit 95f218e
Showing
2 changed files
with
13 additions
and
30 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
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 |
---|---|---|
|
@@ -12,4 +12,15 @@ git clone -b hepromark/asset-kubernetes2 [email protected]:WATonomous/infra-config. | |
# Install libraries | ||
pip install -r requirements.txt | ||
|
||
python3 main.py | ||
# Get list of branches | ||
BRANCHES=$(git ls-remote --heads origin | sed 's?.*refs/heads/??') | ||
|
||
# Loop through each branch | ||
for BRANCH in $BRANCHES; do | ||
echo "Managing Assets for: $BRANCH" | ||
git checkout $BRANCH | ||
git pull origin $BRANCH | ||
|
||
echo "calling main.py" | ||
python3 main.py | ||
done |