https://access.redhat.com/articles/3544031
Create an org robot:
curl -X PUT https://quay.io/api/v1/
Trigger a build:
curl -X POST https://quay.io/api/v1/repository/YOURORGNAME/YOURREPONAME/build/ -H
'Authorization: Bearer INSERTTOKENHERE'
python w/ requests
import requests
r = requests.post('https://quay.io/api/v1/repository/kbrwn/slack-oncall/image', headers={'content-type': 'application/json', 'Authorization': 'Bearer <redacted>'}, data={[<request-body-contents>})
print(r.text)
Create a private repository:
curl -X POST https://quay.io/api/v1/
Add a tag:
Find `docker_image_id`
curl -H "Authorization: Bearer YOUR_TOKEN" -X GET "https://quay.io/api/v1/repository/YOUR_ORG_NAME/YOUR_REPO_NAME/tag/"
Add new tag
curl -X PUT -H "Authorization: Bearer YOUR_TOKEN" --header "Content-Type:application/json" -d '{"image":"DOKER_ID"}' "https://quay.io/api/v1/repository/YOUR_ORG_NAME/YOUR_REPO_NAME/tag/NEW_TAG"
Links:
http://docs.quay.io/api/
http://docs.quay.io/api/swagger/
Comments
0 comments
Please sign in to leave a comment.