diff --git a/.gitea/workflows/release_arm64v8-edge.yml b/.gitea/workflows/release_arm64v8-edge.yml index 70b5466..c628122 100755 --- a/.gitea/workflows/release_arm64v8-edge.yml +++ b/.gitea/workflows/release_arm64v8-edge.yml @@ -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: |