Skip to content

Commit 5c7b671

Browse files
committed
ci: disable all builders for manually trigger
1 parent 6081232 commit 5c7b671

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ on:
2424
description: "Create a GitHub release? (true/false)"
2525
required: false
2626
default: "false"
27+
create_binaries:
28+
description: "Create a Binaries? (true/false)"
29+
required: false
30+
default: "false"
31+
create_images:
32+
description: "Create a Docker Images? (true/false)"
33+
required: false
34+
default: "false"
2735

2836
jobs:
2937
generate-matrix:
@@ -55,6 +63,7 @@ jobs:
5563
build:
5664
runs-on: ubuntu-latest
5765
needs: generate-matrix
66+
if: ${{ github.event.inputs.create_binaries == 'true' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) }}
5867
strategy:
5968
fail-fast: false
6069
matrix:
@@ -139,6 +148,7 @@ jobs:
139148
docker-build:
140149
runs-on: ubuntu-latest
141150
needs: [generate-matrix]
151+
if: ${{ github.event.inputs.create_images == 'true' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) }}
142152
strategy:
143153
fail-fast: false
144154
matrix:

0 commit comments

Comments
 (0)