Skip to content

Commit 46439fd

Browse files
committed
Add step to push description to quay.io
1 parent 3ead7cf commit 46439fd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/update-registry-metadata.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
contents: read # This is required for actions/checkout
1414

1515
jobs:
16-
update_ecr_about_text:
16+
update_repo_metadata:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
@@ -66,3 +66,11 @@ jobs:
6666
fi
6767
jq --arg about "$(cat README.md)" --arg repo "${IMAGE_NAME#*/}" '.catalogData.aboutText = $about | .repositoryName = $repo | del(.catalogData.logoUrl)' catalog-data.json > catalog-data.json.tmp && mv catalog-data.json.tmp catalog-data.json
6868
aws ecr-public put-repository-catalog-data --repository-name ${IMAGE_NAME#*/} --cli-input-json file://catalog-data.json
69+
70+
- name: Update Quay.io Repository Description
71+
run: |
72+
curl -X PUT \
73+
-H "Authorization: Bearer ${{ secrets.PANUBUILD_QUAYIO_API_TOKEN }}" \
74+
-H "Content-Type: application/json" \
75+
-d '{"description": "${{ steps.repo_description.outputs.description }}"}' \
76+
'https://quay.io/api/v1/repository/${{ steps.image_name.outputs.image_name }}'

0 commit comments

Comments
 (0)