~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH builds.sr.ht] Implement CI_NAME=sourcehut

Details
Message ID
<20210401231956.28776-1-mark@markdain.net>
DKIM signature
pass
Download raw message
Patch: +1 -0
This commit pushes a new environment variable, `CI_NAME' which can be
used to reliably detect if some code is running under builds.sr.ht
---
 worker/tasks.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/worker/tasks.go b/worker/tasks.go
index f6688f9..d27bf33 100644
--- a/worker/tasks.go
+++ b/worker/tasks.go
@@ -175,6 +175,7 @@ complete-build() {
	if ctx.Manifest.Environment == nil {
		ctx.Manifest.Environment = make(map[string]interface{})
	}
	ctx.Manifest.Environment["CI_NAME"] = "sourcehut"
	ctx.Manifest.Environment["JOB_ID"] = ctx.Job.Id
	ctx.Manifest.Environment["JOB_URL"] = fmt.Sprintf(
		"%s/~%s/job/%d", origin, ctx.Job.Username, ctx.Job.Id)
--
2.30.2

[builds.sr.ht/patches] build success

builds.sr.ht
Details
Message ID
<CACRVJ7DVNW9.21P9DTA34T940@cirno>
In-Reply-To
<20210401231956.28776-1-mark@markdain.net> (view parent)
DKIM signature
missing
Download raw message
builds.sr.ht/patches: SUCCESS in 2m48s

[Implement CI_NAME=sourcehut][0] from [Mark Dain][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/21724
[1]: mailto:mark@markdain.net

✓ #475094 SUCCESS builds.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/475094
✓ #475096 SUCCESS builds.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/475096
✓ #475095 SUCCESS builds.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/475095
Details
Message ID
<CAIC12DHBCX8.36V2BRC7MXFJ2@taiga>
In-Reply-To
<20210401231956.28776-1-mark@markdain.net> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/builds.sr.ht
   81a5f43..6e7b19e  master -> master
Reply to thread Export thread (mbox)