fixes for build scripts

pull/64/merge 1.7.5
Ilya Sosnovsky 1 year ago
parent af65b36d2b
commit d3b5a77efb
  1. 4
      .github/workflows/release.yaml
  2. 4
      .github/workflows/release_arm.yaml
  3. 2
      build.sh

@ -23,7 +23,7 @@ jobs:
goversion: 1.17
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: bash ./build.sh
pre_command: bash ./install-deps.sh
build_command: bash -ex ./build.sh
pre_command: bash -ex ./install-deps.sh
binary_name: "ovpn-admin"
asset_name: ovpn-admin-${{ matrix.goos }}-${{ matrix.goarch }}

@ -23,7 +23,7 @@ jobs:
goversion: 1.17
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: bash ./build_arm.sh
pre_command: bash ./install-deps-arm.sh
build_command: bash -ex ./build_arm.sh
pre_command: bash -ex ./install-deps-arm.sh
binary_name: "ovpn-admin"
asset_name: ovpn-admin-${{ matrix.goos }}-${{ matrix.goarch }}

@ -6,6 +6,6 @@ cd frontend && npm install && npm run build && cd ..
packr2
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags "-linkmode external -extldflags -static -s -w" @
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags "-linkmode external -extldflags -static -s -w" $@
packr2 clean

Loading…
Cancel
Save