Skip to content

Unable to use container in GitHub Action  #32

@lburgazzoli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions