Skip to content

Commit a412914

Browse files
authored
Merge pull request #199 from cipherstash/make-proxy-not-start-on-build-fail
chore: Make proxy not start on build failure
2 parents 8646090 + 899c355 commit a412914

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

mise.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ description = "Run Proxy instance with docker compose"
5151
dir = "{{config_root}}/tests"
5252
run = """
5353
#!/bin/bash
54+
55+
# Exit immediately if any command returns non-zero. Stops proxy from starting when the build fails
56+
set -e
57+
5458
{% set target = arch() ~ "-unknown-linux-gnu" | replace(from="arm64", to="aarch64") | replace(from="x64", to="x86_64") %}
5559
{% set docker_platform = "linux/" ~ arch() | replace(from="x64", to="amd64") %}
5660
@@ -524,6 +528,10 @@ mise run build:docker --platform {{option(name="platform",default=default_platfo
524528
description = "Build a releasable binary for cipherstash-proxy"
525529
run = """
526530
#!/bin/bash
531+
532+
# Exit immediately if any command returns a non-zero value
533+
set -e
534+
527535
{% set default_target_arch = arch() | replace(from="arm64", to="aarch64") | replace(from="x64", to="x86_64") %}
528536
{% set default_target_os = os() | replace(from="linux", to="unknown-linux-gnu") | replace(from="macos", to="apple-darwin") %}
529537
{% set default_target = default_target_arch ~ "-" ~ default_target_os %}

0 commit comments

Comments
 (0)