fix(renovate): run sed as root to patch read-only dist files

The /usr/local/renovate/dist directory is owned by root.
Temporarily switch to root for the sed patch, then back to ubuntu.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas SharedInbox
2026-05-26 18:55:31 +02:00
co-authored by Claude Sonnet 4.6
parent cf94c7c1fb
commit e8234981c5
+2
View File
@@ -859,7 +859,9 @@ func (m *Ci) Renovate(ctx context.Context, renovateToken *dagger.Secret) (string
WithEnvVariable("RENOVATE_ENDPOINT", "https://codeberg.org").
WithEnvVariable("RENOVATE_REPOSITORIES", "guettli/sharedinbox").
WithEnvVariable("LOG_LEVEL", "info").
WithUser("root").
WithExec([]string{"/bin/sh", "-c", patchCmd}).
WithUser("ubuntu").
WithExec([]string{"renovate"}).
Stdout(ctx)
}