Skip to content

Commit

Permalink
feat: add gobinaries download support
Browse files Browse the repository at this point in the history
- moves main.go to root for nicer URLs
- adds links to README
- updates Makefile paths

Closes #182
  • Loading branch information
fallion committed Apr 15, 2020
1 parent 8a6ffed commit 1f33e1e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v1

- name: Run Commitsar
run: go run cmd/cli/main.go
run: go run main.go
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
Expand All @@ -24,4 +24,4 @@ jobs:
- name: golangci-lint
uses: docker://reviewdog/action-golangci-lint
with:
github_token: ${{ secrets.github_token }}
github_token: ${{ secrets.github_token }}
5 changes: 2 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ before:
# you may remove this if you don't use vgo
- go mod download
builds:
-
env:
- env:
- CGO_ENABLED=0
main: ./cmd/cli/main.go
main: ./main.go
archives:
- replacements:
darwin: Darwin
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ endef

build/docker:
$(call prepare_build_vars)
CGO_ENABLED=0 go build -a -tags "osusergo netgo" --ldflags "${DATE_FLAG} ${VERSION_FLAG} ${COMMIT_FLAG} -linkmode external -extldflags '-static'" -o build/commitsar ./cmd/cli/main.go
CGO_ENABLED=0 go build -a -tags "osusergo netgo" --ldflags "${DATE_FLAG} ${VERSION_FLAG} ${COMMIT_FLAG} -linkmode external -extldflags '-static'" -o build/commitsar ./main.go

build/local:
$(call prepare_build_vars)
go build -a --ldflags "${DATE_FLAG} ${VERSION_FLAG} ${COMMIT_FLAG}" -o build/commitsar ./cmd/cli/main.go
go build -a --ldflags "${DATE_FLAG} ${VERSION_FLAG} ${COMMIT_FLAG}" -o build/commitsar ./main.go
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ Please check [Documentation](https://commitsar.tech).

**Important: Commitsar currently needs to be run in the same folder as the git repository you want checked, currently no override is provided for setting path to git repo see https://github.com/outillage/commitsar/issues/93**

#### Running using https://gobinaries.com/

```sh
curl -sf https://gobinaries.com/outillage/commitsar | sh
```

Or a specific version:
```sh
curl -sf https://gobinaries.com/outillage/commitsar[@VERSION] | sh
```


#### Github action

Checkout git in order to get commits and master branch
Expand Down
File renamed without changes.

0 comments on commit 1f33e1e

Please sign in to comment.