Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add latest Tag to Docker Release #10498

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date --rfc-3339=date)"
run: echo "date=$(date --rfc-3339=date)" >> $GITHUB_OUTPUT

- name: Checkout branch "master"
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: shieldsio/shields:server-${{ steps.date.outputs.date }}
tags: shieldsio/shields:server-${{ steps.date.outputs.date }},shieldsio/shields:latest
build-args: |
version=server-${{ steps.date.outputs.date }}

Expand All @@ -68,6 +68,6 @@ jobs:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/badges/shields:server-${{ steps.date.outputs.date }}
tags: ghcr.io/badges/shields:server-${{ steps.date.outputs.date }},ghcr.io/badges/shields:latest
build-args: |
version=server-${{ steps.date.outputs.date }}
16 changes: 11 additions & 5 deletions doc/self-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ vercel

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
- DockerHub: https://registry.hub.docker.com/r/shieldsio/shields
- GitHub Container Registry: https://github.com/badges/shields/pkgs/container/shields

The `next` tag is the latest build from `master`. These are only available for linux/amd64
| Tag | Architecture | Description |
| ------------- | ----------------------- | ------------------------------------------ |
| `next` | linux/amd64 | Published on every commit to master. |
| `latest` | linux/amd64,linux/arm64 | Published on every tagged release. |
| `server-xxxx` | linux/amd64,linux/arm64 | Tagged releases to pin a specific version. |

```sh
# DockerHub
Expand All @@ -89,15 +93,17 @@ $ docker run shieldsio/shields:next
```sh
# GHCR
$ docker pull ghcr.io/badges/shields:next
$ docker pull ghcr.io/badges/shields:next
$ docker run 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.
We push both linux/amd64 and linux/arm64 snapshot images as of `server-2024-09-02`. 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

Expand Down
Loading