Skip to content

Commit

Permalink
Publish linux/amd64 docker images for snapshot builds only (#10476)
Browse files Browse the repository at this point in the history
* Revert Matrix Build

* add note to the docs about linux/arm64

---------

Co-authored-by: chris48s <[email protected]>
  • Loading branch information
smashedr and chris48s committed Sep 2, 2024
1 parent 6ff2068 commit 0ec667c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Login to DockerHub
uses: docker/login-action@v3
Expand All @@ -48,6 +50,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: shieldsio/shields:server-${{ steps.date.outputs.date }}
build-args: |
version=server-${{ steps.date.outputs.date }}
Expand All @@ -64,6 +67,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/badges/shields:server-${{ steps.date.outputs.date }}
build-args: |
version=server-${{ steps.date.outputs.date }}
12 changes: 8 additions & 4 deletions doc/self-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ We publish images to:
- DockerHub at https://registry.hub.docker.com/r/shieldsio/shields and
- GitHub Container Registry at https://github.com/badges/shields/pkgs/container/shields

The `next` tag is the latest build from `master`, or tagged snapshot releases are available:

- https://registry.hub.docker.com/r/shieldsio/shields/tags
- https://github.com/badges/shields/pkgs/container/shields/versions?filters%5Bversion_type%5D=tagged
The `next` tag is the latest build from `master`. These are only available for linux/amd64

```sh
# DockerHub
Expand All @@ -95,6 +92,13 @@ $ docker pull ghcr.io/badges/shields:next
$ docker pull ghcr.io/badges/shields:next
```

Tagged snapshot releases are also available:

- https://registry.hub.docker.com/r/shieldsio/shields/tags
- https://github.com/badges/shields/pkgs/container/shields/versions?filters%5Bversion_type%5D=tagged

We push both linux/amd64 and linux/arm64 snapshot images. We use the linux/amd64 image ourselves to host shields.io. We push a linux/arm64 image, but we don't consume it ourselves and it receives no testing beyond ensuring the docker image builds without error.

### Building Docker Image Locally

Alternatively, you can build and run the server locally using Docker. First build an image:
Expand Down

0 comments on commit 0ec667c

Please sign in to comment.