Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

revert oras annotations #24

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,27 +188,6 @@ jobs:
registry: zothub.io
username: ${{ secrets.ZOTHUB_USERNAME }}
password: ${{ secrets.ZOTHUB_PASSWORD }}
- name: Push image annotations
run: |
curl -LO https://github.com/oras-project/oras/releases/download/v0.14.1/oras_0.14.1_linux_amd64.tar.gz
mkdir -p oras-install/
tar -zxf oras_0.14.1_*.tar.gz -C oras-install/
sudo mv oras-install/oras /usr/bin/
rm -rf oras_0.14.1_*.tar.gz oras-install/
oras version
# add annotations
DESC=$(cat images/${{ matrix.image }}/README.md)
LICENSE=$(cat images/${{ matrix.image }}/LICENSE.md)
echo "{\"\$manifest\": {
\"org.opencontainers.image.title\":\"${{ github.repository_owner }}/c3/${{ env.IMAGE }}\",
\"org.opencontainers.image.description\":\"$DESC\",
\"org.opencontainers.image.licenses\":\"$LICENSE\",
\"org.opencontainers.image.os\":\"${{ matrix.os }}\",
\"org.opencontainers.image.architecture\":\"${{ matrix.arch }}\"
}
}" > annotations.json
cat annotations.json
oras push zothub.io/${{ github.repository_owner }}/c3/${{ env.IMAGE }}:${{ env.IMAGE_TAG }} --artifact-type "application/vnd.oci.image.config.v1+json" --annotation-file annotations.json
- name: Install go
uses: actions/setup-go@v3
with:
Expand Down