From 800536e6259082b01f66ecca7bfebbd3bb9252ed Mon Sep 17 00:00:00 2001 From: jutty Date: Sat, 21 Mar 2026 09:35:38 -0300 Subject: [PATCH] Move ci user setup to workflow file --- .forgejo/workflows/verify.yaml | 5 +++++ .justfile | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/verify.yaml b/.forgejo/workflows/verify.yaml index 27531a3..4440769 100644 --- a/.forgejo/workflows/verify.yaml +++ b/.forgejo/workflows/verify.yaml @@ -34,6 +34,11 @@ jobs: - name: Setup additional tooling run: .forgejo/workflows/setup-tools.sh + - name: Setup permissions for ci user + run: | + useradd -m ci && chown -R ci:ci . + git config --global --add safe.directory "$PWD" + - name: Build run: just ci build diff --git a/.justfile b/.justfile index 6dc9ac6..0236f9f 100644 --- a/.justfile +++ b/.justfile @@ -433,13 +433,13 @@ default: choose: @just --choose +alias ch := choose + [script, private] ci recipe: - id -u ci >/dev/null 2>&1 || useradd -m ci - chown -R ci:ci . su ci -c "just {{ recipe }}" -alias ch := choose +## VARIABLES export CARGO_TERM_COLOR := 'always' @@ -460,4 +460,6 @@ lockfile_version := ``` | grep version | cut -d '"' -f 2 ``` +## OPTIONS + set unstable