Align source and standalone tool instructions
This commit is contained in:
@@ -337,10 +337,21 @@ and application artifact compilation retain their separate environments.
|
||||
|
||||
The normal Go module and build caches are sufficient. Cache mounts may be added
|
||||
as deployment configuration when they help the runner; they are not needed by
|
||||
the template. A separately installed executable can be installed with
|
||||
`go install go.maximumdirect.net/releasekit/cmd/releasekit@PIN`, then run
|
||||
with the same arguments. With the event object available in the CI checkout,
|
||||
resolve it to its source commit before invocation:
|
||||
the template. For a standalone installation, replace `PIN` with the desired
|
||||
version and [select the Go host target](adoption.md#select-the-go-host-target)
|
||||
for `go install`:
|
||||
|
||||
```sh
|
||||
(
|
||||
releasekit_host_os=$(go env GOHOSTOS) || exit $?
|
||||
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
|
||||
export GOOS="$releasekit_host_os" GOARCH="$releasekit_host_arch"
|
||||
go install go.maximumdirect.net/releasekit/cmd/releasekit@PIN
|
||||
)
|
||||
```
|
||||
|
||||
With the event object available in the CI checkout, resolve it to its source
|
||||
commit before invoking the installed executable:
|
||||
|
||||
```sh
|
||||
expected_commit=$(git -C "$CI_WORKSPACE" rev-parse --verify "${CI_COMMIT_SHA}^{commit}")
|
||||
|
||||
Reference in New Issue
Block a user