Skip to content

Commit

Permalink
include os and arch names in built binary file name
Browse files Browse the repository at this point in the history
Signed-off-by: xeptore <[email protected]>
  • Loading branch information
xeptore committed Mar 22, 2023
1 parent 7d4473d commit da05a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ingest
path: ./bin/ingest
path: ./bin/ingest_linux_amd64
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./bin/ingest
files: ./bin/ingest_linux_amd64
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tidy:
build:
rm -rfv ./bin
mkdir -vp ./bin
go build -trimpath -buildvcs=false -ldflags '-extldflags "-static" -s -w -buildid=' -o ./bin/ingest ./ingest/cmd
go build -trimpath -buildvcs=false -ldflags '-extldflags "-static" -s -w -buildid=' -o ./bin/ingest_$$(go env GOOS)_$$(go env GOARCH) ./ingest/cmd
.PHONY: build

build-clean: clean build
Expand Down

0 comments on commit da05a30

Please sign in to comment.