diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 2677c960..1ea9e21e 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -15,9 +15,9 @@ jobs: container: image: archlinux:base + options: --privileged -w /build volumes: - ${{ github.workspace }}:/build - options: --privileged -w /build steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 285ea92e..5c21751f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,9 +17,9 @@ jobs: container: image: archlinux:base + options: -w /build volumes: - ${{ github.workspace }}:/build - options: -w /build steps: - uses: actions/checkout@v3 diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index cae700b5..b791912d 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -57,6 +57,9 @@ ahriman "${AHRIMAN_DEFAULT_ARGS[@]}" service-setup "${AHRIMAN_SETUP_ARGS[@]}" # create machine-id which is required by build tools systemd-machine-id-setup &> /dev/null +# special workaround to emulate /bin/bash entrypoint if first argument starts with / +[[ "$1" =~ ^/.* ]] && exec "$@" + # if AHRIMAN_FORCE_ROOT is set or command is unsafe we can run without sudo # otherwise we prepend executable by sudo command if [ -n "$AHRIMAN_FORCE_ROOT" ]; then