From b19b64028b87ee3f8cfbe726a3e5942d92ad9b61 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 12 Feb 2025 01:34:06 -0500 Subject: [PATCH] chore: add latest tag to Docker image builds (#536) * chore: add latest tag to Docker image builds Also document the image in the installation guide. * add latest input to docker.yml --- .github/workflows/docker.yml | 7 +++++++ docs/installation.md | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 16c1dbc8..3ec55d15 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,6 +7,12 @@ on: description: 'The version of zizmor to build against' required: true + latest: + description: 'Whether to tag the image as latest' + required: false + default: true + type: boolean + permissions: {} env: @@ -123,6 +129,7 @@ jobs: images: "${{ env.ZIZMOR_IMAGE }}" tags: | type=raw,value=${{ github.event.inputs.version }} + typw=raw,value=latest,enable=${{ github.event.inputs.latest }} - name: Create manifest list and push working-directory: ${{ runner.temp }}/digests diff --git a/docs/installation.md b/docs/installation.md index d5c764e1..b64a49a7 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -49,6 +49,14 @@ description: Installation instructions for zizmor. uvx zizmor --help ``` +=== ":simple-docker: Docker" + + An official `zizmor` image is available from the [GitHub Container Registry](https://ghcr.io/woodruffw/zizmor): + + ```bash + docker pull ghcr.io/woodruffw/zizmor:latest + ``` + === ":simple-anaconda: Conda" [![Anaconda-Server Badge](https://anaconda.org/conda-forge/zizmor/badges/version.svg)](https://anaconda.org/conda-forge/zizmor) @@ -98,7 +106,6 @@ description: Installation instructions for zizmor. pacman -S zizmor ``` - === "Other ecosystems" !!! info