From 115615d99461ffe9882834cfb02ebbd0f503db2a Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 18 Aug 2026 11:48:59 -0700 Subject: [PATCH] Let the web image workflow publish a version by hand `latest` could only ever come from a release tag, and tagging also fires the app and CLI releases. A dispatch that names a version now publishes it and latest, which is how the first image gets out before a release exists. --- .github/workflows/release-web-image.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-web-image.yml b/.github/workflows/release-web-image.yml index fc07b25c..eee30e07 100644 --- a/.github/workflows/release-web-image.yml +++ b/.github/workflows/release-web-image.yml @@ -8,6 +8,11 @@ on: push: tags: [v*] workflow_dispatch: + inputs: + version: + description: Version to publish, without the v (e.g. 2026.2.0). Empty publishes main and sha tags only. + required: false + type: string permissions: contents: read @@ -92,15 +97,18 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # `latest=auto` tags latest for a release tag and leaves it alone for a prerelease - # (v2026.2.1-beta.1) or a manual run off a branch. + # `latest` follows a release tag, and a manual run that names a version — the way to + # publish before the first release. A prerelease (v2026.2.1-beta.1) never takes it. - name: Tags id: meta uses: docker/metadata-action@v5 with: images: ${{ env.IMAGE }} + flavor: latest=false tags: | type=semver,pattern={{version}} + type=raw,value=${{ inputs.version }},enable=${{ inputs.version != '' }} + type=raw,value=latest,enable=${{ inputs.version != '' || (github.event_name == 'push' && !contains(github.ref_name, '-')) }} type=ref,event=branch type=sha,format=short