Move ci user setup to workflow file

This commit is contained in:
Juno Takano 2026-03-21 09:35:38 -03:00
commit 800536e625
2 changed files with 10 additions and 3 deletions

View file

@ -34,6 +34,11 @@ jobs:
- name: Setup additional tooling - name: Setup additional tooling
run: .forgejo/workflows/setup-tools.sh 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 - name: Build
run: just ci build run: just ci build

View file

@ -433,13 +433,13 @@ default:
choose: choose:
@just --choose @just --choose
alias ch := choose
[script, private] [script, private]
ci recipe: ci recipe:
id -u ci >/dev/null 2>&1 || useradd -m ci
chown -R ci:ci .
su ci -c "just {{ recipe }}" su ci -c "just {{ recipe }}"
alias ch := choose ## VARIABLES
export CARGO_TERM_COLOR := 'always' export CARGO_TERM_COLOR := 'always'
@ -460,4 +460,6 @@ lockfile_version := ```
| grep version | cut -d '"' -f 2 | grep version | cut -d '"' -f 2
``` ```
## OPTIONS
set unstable set unstable