Created
February 24, 2016 00:51
-
-
Save andyshinn/f71b05ba59a901db78e1 to your computer and use it in GitHub Desktop.
Change Quay permissions for all repositories
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
for repo in $(http --session quay GET "https://quay.io/api/v1/repository?namespace=$NAMESPACE&public=false" Authorization:"Bearer $AUTH_TOKEN" | jq -r '.repositories[].name'); do http --session quay PUT "https://quay.io/api/v1/repository/$NAMESPACE/$repo/permissions/team/$TEAM" role=read; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment