This commit is contained in:
Sambo Chea 2021-03-26 21:33:19 +07:00
parent 6129ff1f26
commit db8877c80f
3 changed files with 8 additions and 9 deletions

View File

@ -10,7 +10,7 @@ jobs:
steps: steps:
- name: Starter Docker Test - name: Starter Docker Test
uses: cubetiq/starter-docker-actions@v0.6 uses: cubetiq/starter-docker-actions@v0.7
with: with:
shell: bash shell: bash
run: docker version run: docker version

View File

@ -9,7 +9,7 @@
```yaml ```yaml
- name: Starter Docker - name: Starter Docker
uses: CUBETIQ/starter-docker-actions@v0.6 uses: CUBETIQ/starter-docker-actions@v0.7
``` ```
# Example Action # Example Action
@ -26,12 +26,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: cubetiq/starter-docker-actions@v0.6
- name: Starter Docker Test - name: Starter Docker Test
run: | uses: cubetiq/starter-docker-actions@v0.7
docker images with:
docker ps shell: bash
docker --version run: docker version
``` ```
# Contributors # Contributors

View File

@ -18,4 +18,4 @@ if [ -z $semicolon_delimited_script ];
then semicolon_delimited_script="echo $(whoami)" then semicolon_delimited_script="echo $(whoami)"
fi fi
exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS $INPUT_SHELL -c "`cat semicolon_delimited_script`" $INPUT_IMAGE exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE "`cat semicolon_delimited_script`"