This is a script I am using to download a branch or tag from a repository in Gitlab or GitHub. It is used in https://gitlab.com/apiopenstudio/docker_images/apiopenstudio_docker_prod and I wanted to share it for anyone that might find it useful. It takes 3 inputs:
- Repository URL (examples:
https://github.com/naala89/apiopenstudio
,https://gitlab.com/apiopenstudio/apiopenstudio
) - Branch name (optional)
- Tag name (optional)
example usage:
- Visit https://api.github.com/meta for the latest GitHub IP ranges
- Copy all of the ranges in the
git
section, and paste into a text editor - Replace
", "
with,
- In AWS console, navigate to Network & Security > Security Groups