Skip to content

Commit

Permalink
chore: add latest tag to Docker image builds (#536)
Browse files Browse the repository at this point in the history
* chore: add latest tag to Docker image builds

Also document the image in the installation guide.

* add latest input to docker.yml
  • Loading branch information
woodruffw authored Feb 12, 2025
1 parent bce1688 commit b19b640
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -98,7 +106,6 @@ description: Installation instructions for zizmor.
pacman -S zizmor
```


=== "Other ecosystems"

!!! info
Expand Down

0 comments on commit b19b640

Please sign in to comment.