mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
added annotations to container image builds
This commit is contained in:
parent
bb71a7a9eb
commit
a39d74ca15
11
.github/workflows/container-image-release.yml
vendored
11
.github/workflows/container-image-release.yml
vendored
@ -52,6 +52,13 @@ jobs:
|
||||
org.opencontainers.image.source=https://github.com/jikan-me/jikan-rest
|
||||
org.opencontainers.image.documentation=https://github.com/jikan-me/jikan-rest/blob/master/container_usage.md
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
annotations: |
|
||||
org.opencontainers.image.title=Jikan REST API
|
||||
org.opencontainers.image.description=REST API for Jikan
|
||||
org.opencontainers.image.url=https://jikan.moe
|
||||
org.opencontainers.image.source=https://github.com/jikan-me/jikan-rest
|
||||
org.opencontainers.image.documentation=https://github.com/jikan-me/jikan-rest/blob/master/container_usage.md
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
@ -69,10 +76,8 @@ jobs:
|
||||
# let's use github action cache storage
|
||||
cache-from: type=gha,scope=buildkit_${{ matrix.platform }}
|
||||
cache-to: type=gha,mode=max,scope=buildkit_${{ matrix.platform }}
|
||||
# todo: We are building a multi arch image, and because of the OCI standard the labels defined above should go in the annotations too.
|
||||
# todo: Add "annotations" when the new version hits of this action: https://github.com/docker/build-push-action/pull/992
|
||||
# todo: that way all the fields in packages will be populated, so each version will have proper revision, name, description.
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
annotations: ${{ steps.meta.outputs.annotations }}
|
||||
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
|
||||
|
||||
- name: Export digest
|
||||
|
Loading…
x
Reference in New Issue
Block a user