Skip to content

Commit dd9b9d4

Browse files
authored
Merge pull request #797 from docker/release-as-latest
Release as latest
2 parents f9f2e8b + d10f36b commit dd9b9d4

2 files changed

Lines changed: 7 additions & 115 deletions

File tree

.github/workflows/promote-to-latest.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Release
22
run-name: >-
33
Release
44
${{ inputs.releaseTag != '' && inputs.releaseTag || format('(auto {0} bump)', inputs.bumpType || 'patch') }}
5-
${{ inputs.pushLatest && ' + latest' || '' }}
65
76
on:
87
workflow_dispatch:
@@ -20,11 +19,6 @@ on:
2019
description: "Explicit release tag — overrides auto-bump (e.g., v1.2.3)"
2120
required: false
2221
type: string
23-
pushLatest:
24-
description: "Tag images produced by this job as latest"
25-
required: false
26-
type: boolean
27-
default: false
2822
llamaServerVersion:
2923
description: "llama-server version"
3024
required: false
@@ -232,7 +226,6 @@ jobs:
232226
LLAMA_SERVER_VERSION: ${{ inputs.llamaServerVersion || 'latest' }}
233227
VLLM_VERSION: ${{ inputs.vllmVersion }}
234228
SGLANG_VERSION: ${{ inputs.sglangVersion || '0.4.0' }}
235-
PUSH_LATEST: ${{ inputs.pushLatest || 'false' }}
236229
BUILD_MUSA_CANN: ${{ inputs.buildMusaCann || 'false' }}
237230
steps:
238231
- name: Checkout repo
@@ -244,45 +237,31 @@ jobs:
244237
run: |
245238
echo "cpu<<EOF" >> "$GITHUB_OUTPUT"
246239
echo "docker/model-runner:$RELEASE_TAG" >> "$GITHUB_OUTPUT"
247-
if [ "$PUSH_LATEST" == "true" ]; then
248-
echo "docker/model-runner:latest" >> "$GITHUB_OUTPUT"
249-
fi
240+
echo "docker/model-runner:latest" >> "$GITHUB_OUTPUT"
250241
echo 'EOF' >> "$GITHUB_OUTPUT"
251242
echo "cuda<<EOF" >> "$GITHUB_OUTPUT"
252243
echo "docker/model-runner:$RELEASE_TAG-cuda" >> "$GITHUB_OUTPUT"
253-
if [ "$PUSH_LATEST" == "true" ]; then
254-
echo "docker/model-runner:latest-cuda" >> "$GITHUB_OUTPUT"
255-
fi
244+
echo "docker/model-runner:latest-cuda" >> "$GITHUB_OUTPUT"
256245
echo 'EOF' >> "$GITHUB_OUTPUT"
257246
echo "vllm-cuda<<EOF" >> "$GITHUB_OUTPUT"
258247
echo "docker/model-runner:$RELEASE_TAG-vllm-cuda" >> "$GITHUB_OUTPUT"
259-
if [ "$PUSH_LATEST" == "true" ]; then
260-
echo "docker/model-runner:latest-vllm-cuda" >> "$GITHUB_OUTPUT"
261-
fi
248+
echo "docker/model-runner:latest-vllm-cuda" >> "$GITHUB_OUTPUT"
262249
echo 'EOF' >> "$GITHUB_OUTPUT"
263250
echo "sglang-cuda<<EOF" >> "$GITHUB_OUTPUT"
264251
echo "docker/model-runner:$RELEASE_TAG-sglang-cuda" >> "$GITHUB_OUTPUT"
265-
if [ "$PUSH_LATEST" == "true" ]; then
266-
echo "docker/model-runner:latest-sglang-cuda" >> "$GITHUB_OUTPUT"
267-
fi
252+
echo "docker/model-runner:latest-sglang-cuda" >> "$GITHUB_OUTPUT"
268253
echo 'EOF' >> "$GITHUB_OUTPUT"
269254
echo "rocm<<EOF" >> "$GITHUB_OUTPUT"
270255
echo "docker/model-runner:$RELEASE_TAG-rocm" >> "$GITHUB_OUTPUT"
271-
if [ "$PUSH_LATEST" == "true" ]; then
272-
echo "docker/model-runner:latest-rocm" >> "$GITHUB_OUTPUT"
273-
fi
256+
echo "docker/model-runner:latest-rocm" >> "$GITHUB_OUTPUT"
274257
echo 'EOF' >> "$GITHUB_OUTPUT"
275258
echo "musa<<EOF" >> "$GITHUB_OUTPUT"
276259
echo "docker/model-runner:$RELEASE_TAG-musa" >> "$GITHUB_OUTPUT"
277-
if [ "$PUSH_LATEST" == "true" ]; then
278-
echo "docker/model-runner:latest-musa" >> "$GITHUB_OUTPUT"
279-
fi
260+
echo "docker/model-runner:latest-musa" >> "$GITHUB_OUTPUT"
280261
echo 'EOF' >> "$GITHUB_OUTPUT"
281262
echo "cann<<EOF" >> "$GITHUB_OUTPUT"
282263
echo "docker/model-runner:$RELEASE_TAG-cann" >> "$GITHUB_OUTPUT"
283-
if [ "$PUSH_LATEST" == "true" ]; then
284-
echo "docker/model-runner:latest-cann" >> "$GITHUB_OUTPUT"
285-
fi
264+
echo "docker/model-runner:latest-cann" >> "$GITHUB_OUTPUT"
286265
echo 'EOF' >> "$GITHUB_OUTPUT"
287266
288267
- name: Log in to DockerHub

0 commit comments

Comments
 (0)