fix user
Some checks failed
Release Alpine apk for ARM64v8 Edge / compilation-arm64v8 (push) Failing after -38s
Some checks failed
Release Alpine apk for ARM64v8 Edge / compilation-arm64v8 (push) Failing after -38s
This commit is contained in:
parent
482806aa35
commit
56463ed28e
1 changed files with 11 additions and 5 deletions
|
@ -24,15 +24,21 @@ jobs:
|
|||
apk update && apk upgrade
|
||||
apk add bash git curl alpine-sdk abuild sudo shadow fuse sshfs nodejs wget
|
||||
|
||||
- name: Prepare runner user
|
||||
- name: Set up environment and users
|
||||
run: |
|
||||
echo "user_allow_other" >> /etc/fuse.conf
|
||||
adduser runner -u 1003 -D -s /bin/bash -G wheel
|
||||
addgroup -g 1003 runner
|
||||
adduser -u 1003 -D -s /bin/bash -G wheel,abuild runner
|
||||
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
addgroup runner abuild
|
||||
addgroup runner runner
|
||||
chmod 660 /etc/sudoers
|
||||
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
chmod 440 /etc/sudoers
|
||||
mkdir -p /var/cache/distfiles && chmod a+w /var/cache/distfiles
|
||||
echo "done"
|
||||
mkdir -p /var/cache/distfiles
|
||||
chmod a+w /var/cache/distfiles
|
||||
chsh -s /bin/bash
|
||||
su - runner -c 'mkdir ~/.abuild'
|
||||
echo "setup done"
|
||||
|
||||
- name: Set up keys
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue