Skip to content

Commit 82f34de

Browse files
committed
Add a comment about why we are adding annotations
1 parent f8498e5 commit 82f34de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-and-push.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
3535
registry: ghcr.io
3636
username: ${{ github.actor }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
38+
# Extract labels from the Dockerfile to use as OCI annotations.
39+
# This allows them to show up on the webpages for the containers on GHCR due to using
40+
# multi-arch images
41+
# (as documented at
42+
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
43+
# ).
44+
# The pre-defined annotations by the OCI that you can add to a manifest can be found at
45+
# https://specs.opencontainers.org/image-spec/annotations/#pre-defined-annotation-keys
3846
- name: Extract labels from Dockerfile
3947
id: labels
4048
run: |

0 commit comments

Comments
 (0)