From fa59f13fa44da8d44554c6574e7cb3a848b6d7b0 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 | 3 +++ .justfile | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/verify.yaml b/.forgejo/workflows/verify.yaml index 27531a3..0155831 100644 --- a/.forgejo/workflows/verify.yaml +++ b/.forgejo/workflows/verify.yaml @@ -34,6 +34,9 @@ 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 . + - 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