Skip to content

Commit

Permalink
feat: adding glueops-fetch-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala authored Dec 4, 2022
1 parent 1e7f5ce commit 666839b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}


ENV CLOUDSDK_INSTALL_DIR /usr/local/gcloud/
ADD glueops-fetch-repos /usr/bin/glueops-repo-fetch
RUN chmod +x /usr/bin/glueops-repo-fetch
RUN curl -sSL https://sdk.cloud.google.com | bash
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
RUN gcloud components install gke-gcloud-auth-plugin --quiet
Expand Down
7 changes: 7 additions & 0 deletions glueops-fetch-repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#https://stackoverflow.com/a/68770988/4620962

gh repo list $(basename $(git remote get-url origin)) --limit 1000 | while read -r repo _; do
gh repo clone "$repo" "$repo" -- --depth=1 --recurse-submodules || {
git -C $repo pull
} &
done

0 comments on commit 666839b

Please sign in to comment.