Skip to content

Commit 01bc549

Browse files
committed
ci: disable all builders for manually trigger
1 parent 6081232 commit 01bc549

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
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:

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
'';
5252
};
5353

54-
mkPackage = { arch, os, target }: let
54+
mkPackage = { arch, os, target, ... }: let
5555
crossPkgs = mkCrossPkgs { inherit arch os; };
5656
in pkgs.rustPlatform.buildRustPackage {
5757
pname = "grhooks";
@@ -107,10 +107,10 @@
107107
};
108108
};
109109

110-
packages = lib.listToAttrs (map ({ arch, os, target, ... }: {
110+
packages = (lib.listToAttrs (map ({ arch, os, target, ... }: {
111111
name = "${os}-${arch}";
112112
value = mkPackage { inherit arch os target; };
113-
}) architectures) // (pkgs.lib.listToAttrs (map ({arch, ...} @ args: {
113+
}) architectures)) // (pkgs.lib.listToAttrs (map ({arch, ...} @ args: {
114114
name = "image-${arch}";
115115
value = containerPkg args;
116116
}) architectures));

0 commit comments

Comments
 (0)