This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use goreleaser for building cli and plugin
- Loading branch information
1 parent
24ea868
commit 32b7d90
Showing
21 changed files
with
205 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ | |
|
||
/.ext | ||
/bin | ||
/dist | ||
/cover.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
before: | ||
hooks: | ||
|
||
builds: | ||
- id: cli | ||
main: ./cmd/aserto-idp | ||
binary: aserto-idp | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
ldflags: | ||
- -s | ||
- -w | ||
- -X github.com/aserto-dev/aserto-idp/pkg/version.ver={{.Version}} | ||
- -X github.com/aserto-dev/aserto-idp/pkg/version.commit={{.ShortCommit}} | ||
- -X github.com/aserto-dev/aserto-idp/pkg/version.date={{.Date}} | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
no_unique_dist_dir: true | ||
|
||
- id: aserto-idp-plugin-aserto | ||
main: ./plugins/aserto/cmd/aserto-idp-plugin-aserto | ||
binary: aserto-idp-plugin-aserto | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
ldflags: | ||
- -s | ||
- -w | ||
- -X github.com/aserto-dev/aserto-idp/plugins/aserto/pkg/config.ver={{.Version}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/aserto/pkg/config.commit={{.ShortCommit}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/aserto/pkg/config.date={{.Date}} | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
no_unique_dist_dir: true | ||
|
||
- id: aserto-idp-plugin-auth0 | ||
main: ./plugins/auth0/cmd/aserto-idp-plugin-auth0 | ||
binary: aserto-idp-plugin-auth0 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
ldflags: | ||
- -s | ||
- -w | ||
- -X github.com/aserto-dev/aserto-idp/plugins/auth0/pkg/config.ver={{.Version}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/auth0/pkg/config.commit={{.ShortCommit}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/auth0/pkg/config.date={{.Date}} | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
no_unique_dist_dir: true | ||
|
||
- id: aserto-idp-plugin-dummy | ||
main: ./plugins/dummy/cmd/aserto-idp-plugin-dummy | ||
binary: aserto-idp-plugin-dummy | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
ldflags: | ||
- -s | ||
- -w | ||
- -X github.com/aserto-dev/aserto-idp/plugins/dummy/pkg/config.ver={{.Version}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/dummy/pkg/config.commit={{.ShortCommit}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/dummy/pkg/config.date={{.Date}} | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
no_unique_dist_dir: true | ||
|
||
- id: aserto-idp-plugin-json | ||
main: ./plugins/json/cmd/aserto-idp-plugin-json | ||
binary: aserto-idp-plugin-json | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
ldflags: | ||
- -s | ||
- -w | ||
- -X github.com/aserto-dev/aserto-idp/plugins/json/pkg/config.ver={{.Version}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/json/pkg/config.commit={{.ShortCommit}} | ||
- -X github.com/aserto-dev/aserto-idp/plugins/json/pkg/config.date={{.Date}} | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
no_unique_dist_dir: true | ||
|
||
archives: | ||
- format: zip | ||
replacements: | ||
darwin: darwin | ||
linux: linux | ||
windows: windows | ||
amd64: x86_64 | ||
files: | ||
- LICENSE | ||
- README.md | ||
name_template: "aserto-idp{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
|
||
checksum: | ||
name_template: "checksums.txt" | ||
|
||
snapshot: | ||
name_template: "{{ .Tag }}" | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
|
||
release: | ||
github: | ||
owner: aserto-dev | ||
name: aserto-idp | ||
|
||
draft: false | ||
prerelease: false | ||
name_template: "aserto-idp {{.Tag}}" | ||
|
||
brews: | ||
- name: aserto-idp | ||
|
||
tap: | ||
owner: aserto-dev | ||
name: aserto-tap | ||
token: "{{ .Env.ASERTO_TAP }}" | ||
|
||
url_template: "https://github.com/aserto-dev/aserto-idp/releases/download/{{ .Tag }}/{{ .ArtifactName }}" | ||
download_strategy: CustomGitHubPrivateRepositoryReleaseDownloadStrategy | ||
custom_require: "lib/custom_download_strategy" | ||
|
||
commit_author: | ||
name: Aserto Bot | ||
email: github-bot@aserto.com | ||
|
||
homepage: "https://aserto.com/" | ||
|
||
description: "aserto idp CLI for importing and exporting users to/from IDP providers." | ||
|
||
license: "Apache License Version 2.0" | ||
|
||
skip_upload: false | ||
|
||
test: | | ||
system "#{bin}/aserto-idp version" | ||
install: | | ||
bin.install "aserto-idp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cmd/aserto-idp-plugin-aserto/main.go → ...erto/cmd/aserto-idp-plugin-aserto/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cmd/aserto-idp-plugin-auth0/main.go → ...auth0/cmd/aserto-idp-plugin-auth0/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
plugins/auth0/srv/producer.go → plugins/auth0/pkg/srv/producer.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cmd/aserto-idp-plugin-dummy/main.go → ...dummy/cmd/aserto-idp-plugin-dummy/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cmd/aserto-idp-plugin-json/main.go → ...s/json/cmd/aserto-idp-plugin-json/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.