Skip to content

Commit b84b9e2

Browse files
committed
simplify CLI trigger logic
1 parent a08d9e7 commit b84b9e2

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
name: Docker Publish CLI
44

55
on:
6-
push:
7-
tags:
8-
- "v*.*.*"
96
schedule:
107
- cron: "0 0 * * *"
118
# Trigger without any parameters a proactive rebuild
@@ -17,6 +14,11 @@ on:
1714
tag_override:
1815
description: "Override the tag"
1916
workflow_call:
17+
inputs:
18+
push:
19+
description: 'Push the image to registry'
20+
type: boolean
21+
default: true
2022

2123
env:
2224
REGISTRY: ghcr.io
@@ -98,7 +100,7 @@ jobs:
98100
with:
99101
context: ./
100102
file: ./Dockerfile.build
101-
push: true
103+
push: ${{ inputs.push != false }}
102104
tags: ${{ steps.docker_tagging.outputs.docker_tags }}
103105
labels: ${{ steps.meta.outputs.labels }}
104106
cache-from: type=gha

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@ jobs:
331331
# Wait until all the binaries have been built to set the latest release.
332332
gh release edit ${{ needs.prepare.outputs.tag_name }} --latest
333333
334+
docker-publish:
335+
name: Docker build and publish
336+
needs: [cargo-prove-release, prepare]
337+
uses: ./.github/workflows/docker-publish.yml
338+
with:
339+
push: ${{ inputs.dry_run != true }}
340+
334341
toolchain-test:
335342
name: "Test toolchain installation (${{ matrix.name }})"
336343
needs: [sp1-gpu-server-release, cargo-prove-release, prepare]

0 commit comments

Comments
 (0)