diff --git a/Dockerfile b/Dockerfile index 58dbee9..ff9ded9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,5 +10,12 @@ RUN apt-get update && \ -y && \ rm -rf /var/cache/apt + +ADD entrypoint.sh /entrypoint.sh + +RUN chmod +x /entrypoint.sh + +ENTRYPOINT [ "/entrypoint.sh" ] + diff --git a/README.md b/README.md index f3d4850..9299906 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v3 - name: make - uses: embedd-actions/arm-gcc-ci@v1 + uses: embedd-actions/arm-gcc-ci@v2 with: command: make --directory Release all diff --git a/action.yml b/action.yml index 4f4b978..148e1c4 100644 --- a/action.yml +++ b/action.yml @@ -7,9 +7,7 @@ inputs: default: arm-none-eabi-gcc --version runs: using: 'docker' - image: 'docker://sergeyladanov/arm-gcc:v1' + image: 'docker://sergeyladanov/arm-gcc:v2' args: - - /bin/sh - - -c - ${{ inputs.command }} diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..1b565af --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exec $@