Skip to content

Commit d2a914c

Browse files
authored
ci: fix OCI image annotations (#217)
1 parent 3e15754 commit d2a914c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444

4545
- uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
46+
id: meta
47+
env:
48+
# https://docs.docker.com/build/ci/github-actions/annotations/#configure-annotation-level
49+
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
4650
with:
4751
images: |
4852
mccutchen/go-httpbin
@@ -59,7 +63,6 @@ jobs:
5963
# debugging purposes by uncommenting the pull_request trigger at
6064
# top of the workflow.
6165
type=sha,format=short,enable=${{ github.event_name == 'pull_request' }}
62-
id: meta
6366
6467
- uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
6568
with:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ A reasonably complete and well-tested golang port of [Kenneth Reitz][kr]'s
1515

1616
Prebuilt images for the `linux/amd64` and `linux/arm64` architectures are
1717
automatically published to these public registries for every tagged release:
18-
- GitHub Container Registry: [ghcr.io/mccutchen/go-httpbin][ghcr]
19-
- **Note:** Only version `2.17` and later
20-
- Docker Hub: [mccutchen/go-httpbin][docker-hub]
18+
- [ghcr.io/mccutchen/go-httpbin][ghcr] (recommended)
19+
- [mccutchen/go-httpbin][docker-hub]
2120

2221
```bash
2322
# Run http server

0 commit comments

Comments
 (0)