Skip to content

Commit

Permalink
ci: change nameof binary and add values to command -version
Browse files Browse the repository at this point in the history
  • Loading branch information
kenriortega committed Aug 11, 2021
1 parent 6818eaf commit 324f65b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/"
binary_name: "ngxctl"
ldflags: "-s -X main.buildTime=${env.BUILD_TIME} -X main.versionHash=${github.sha} -X main.version=${env.APP_VERSION}"
binary_name: "ngxctl-${{ env.APP_VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }}"
ldflags: "-s -X main.buildTime=${{env.BUILD_TIME}} -X main.versionHash=${{github.sha}} -X main.version=${{env.APP_VERSION}}"

releases-matrix-arm:
name: Release Go Binary
Expand All @@ -52,5 +52,5 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/"
binary_name: "ngxctl"
ldflags: "-s -X main.buildTime=${env.BUILD_TIME} -X main.versionHash=${github.sha} -X main.version=${env.APP_VERSION}"
binary_name: "ngxctl-${{ env.APP_VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }}"
ldflags: "-s -X main.buildTime=${{env.BUILD_TIME}} -X main.versionHash=${{github.sha}} -X main.version=${{env.APP_VERSION}}"

0 comments on commit 324f65b

Please sign in to comment.