Skip to content

Unable to use container in GitHub Action  #32

Description

@lburgazzoli

I'm experiencing the very same issue as #23.

I have the following script:

docker run \
    --rm \
    --user "$(id -u):$(id -g)" \
    --volume "${PROJECT_ROOT}":/src:Z \
    --workdir /src \
    tinygo/tinygo:"${TINYGO_VERSION}" \
    tinygo build \
        -target=wasi \
        -scheduler=none \
        -o "${OUT}" \
        "${IN}"

If I run it on my local mac (m1), I get:

➜ TINYGO_VERSION=0.31.2 ./build_wasm.sh ${PWD}  etc/wasm/fn/simple_process.go etc/wasm/fn/simple_process.wasm
error: mkdir /.cache: permission denied
make: *** [wasm/build] Error 1

Which would works if I remove the --user flag on my local computer, but would fail on GitHub Action:

error: open etc/wasm/fn/simple_process.wasm: permission denied
make: *** [Makefile:130: wasm/build] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions