builds.sr.ht: mention hut, deprecate acurl
builds.sr.ht now sets up a hut configuration file.
This commit is contained in:
parent
4fc23ffa9b
commit
1866f16695
|
@ -137,6 +137,7 @@ Each task's script is given a preamble that looks like this:
|
|||
. ~/.buildenv
|
||||
set -xe
|
||||
|
||||
# Deprecated -- use hut instead
|
||||
acurl() (
|
||||
set +x
|
||||
curl --oauth2-bearer "$OAUTH2_TOKEN" "$@"
|
||||
|
|
|
@ -116,6 +116,7 @@ with the following preamble:
|
|||
. ~/.buildenv
|
||||
set -xe
|
||||
|
||||
# Deprecated -- use hut instead
|
||||
acurl() (
|
||||
set +x
|
||||
curl --oauth2-bearer "$OAUTH2_TOKEN" "$@"
|
||||
|
@ -161,5 +162,7 @@ List of secret UUIDs to be added to the guest during the build. See also:
|
|||
|
||||
If present, and secrets are enabled for this build, an OAuth 2.0 bearer token is
|
||||
generated for this build with the given string as the list of grants. The
|
||||
`acurl` command may be used in the task scripts to perform authenticated
|
||||
[GraphQL API requests](https://man.sr.ht/graphql.md).
|
||||
[hut](https://sr.ht/~emersion/hut/) tool may be used in the task scripts to
|
||||
perform authenticated [GraphQL API requests](https://man.sr.ht/graphql.md).
|
||||
hut needs to be included in the [`packages`](#packages) list (using the name
|
||||
of the [hut package for your OS](https://repology.org/project/hut/versions)).
|
||||
|
|
Loading…
Reference in New Issue