Skip to content

Commit d3b5a77

Browse files
committed
fixes for build scripts
1 parent af65b36 commit d3b5a77

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
goversion: 1.17
2424
goos: ${{ matrix.goos }}
2525
goarch: ${{ matrix.goarch }}
26-
build_command: bash ./build.sh
27-
pre_command: bash ./install-deps.sh
26+
build_command: bash -ex ./build.sh
27+
pre_command: bash -ex ./install-deps.sh
2828
binary_name: "ovpn-admin"
2929
asset_name: ovpn-admin-${{ matrix.goos }}-${{ matrix.goarch }}

.github/workflows/release_arm.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
goversion: 1.17
2424
goos: ${{ matrix.goos }}
2525
goarch: ${{ matrix.goarch }}
26-
build_command: bash ./build_arm.sh
27-
pre_command: bash ./install-deps-arm.sh
26+
build_command: bash -ex ./build_arm.sh
27+
pre_command: bash -ex ./install-deps-arm.sh
2828
binary_name: "ovpn-admin"
2929
asset_name: ovpn-admin-${{ matrix.goos }}-${{ matrix.goarch }}

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ cd frontend && npm install && npm run build && cd ..
66

77
packr2
88

9-
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags "-linkmode external -extldflags -static -s -w" @
9+
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags "-linkmode external -extldflags -static -s -w" $@
1010

1111
packr2 clean

0 commit comments

Comments
 (0)