hashicorp/Go Build
Define a reproducible build. Currently only supports Go builds.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| product_name | Used to calculate default `bin_name` and `zip_name`. Defaults to repository name. | no | — |
| product_version | Full version of the product being built (including metadata). | no | — |
| product_version_meta | The metadata field of the version. | no | — |
| go_version | Version of Go to use for this build. | yes | — |
| os | Target product operating system. | yes | — |
| arch | Target product architecture. | yes | — |
| reproducible | Assert that this build is reproducible. Options are `assert` (the default), `report`, or `nope`. | no | assert |
| bin_name | Name of the product binary generated. Defaults to `product_name` minus any `-enterprise` suffix. | no | — |
| zip_name | Name of the product zip file. Defaults to `<product_name>_<product_version>_<os>_<arch>.zip`. | no | — |
| work_dir | The working directory, to run the instructions in. Defaults to the current directory. | no | . |
| instructions | Build instructions to generate the binary. See [Build Instructions](#build-instructions) for more info. | yes | — |
| debug | Enable debug-level logging. | no | 0 |
| clean | Build with the clean flag. | no | true |
Outputs
| name | description |
|---|---|
| zip_name | Name of the built zip file. |
| target_dir | Name of the directory where an artifact can be assembled |