~sircmpwn/sr.ht-docs

1866f16695c8c5a6f01f62ac8be9f242eda25bb8 — Simon Ser a month ago 4fc23ff
builds.sr.ht: mention hut, deprecate acurl

builds.sr.ht now sets up a hut configuration file.
2 files changed, 6 insertions(+), 2 deletions(-)

M builds.sr.ht/index.md
M builds.sr.ht/manifest.md
M builds.sr.ht/index.md => builds.sr.ht/index.md +1 -0
@@ 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" "$@"

M builds.sr.ht/manifest.md => builds.sr.ht/manifest.md +5 -2
@@ 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)).