From b34a9fb6c7b72058a543af400ada832dd34093b8 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 21:13:21 +0700 Subject: [PATCH] Updated to version 0.4 --- .github/workflows/main.yml | 11 +++++------ README.md | 4 ++-- entrypoint.sh | 2 ++ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67fedca..f29db92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,16 +2,15 @@ name: CI on: push: - branches: [ master ] + branches: [master] jobs: build: runs-on: ubuntu-latest steps: - - uses: cubetiq/starter-docker-actions@v0.3 + - uses: cubetiq/starter-docker-actions@v0.4 - name: Starter Docker Test - run: | - docker images - docker ps - docker --version + with: + shell: bash + run: docker version diff --git a/README.md b/README.md index f5d73be..8765e62 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ```yaml - name: Starter Docker - uses: CUBETIQ/starter-docker-actions@v0.3 + uses: CUBETIQ/starter-docker-actions@v0.4 ``` # Example Action @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: cubetiq/starter-docker-actions@v0.3 + - uses: cubetiq/starter-docker-actions@v0.4 - name: Starter Docker Test run: | docker images diff --git a/entrypoint.sh b/entrypoint.sh index d83330a..d5ccf7c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,6 +6,8 @@ fi echo "$INPUT_RUN" | sed -e 's/\\n/;/g' > semicolon_delimited_script +echo "INPUT RUN => $semicolon_delimited_script" + if [ ! -z $INPUT_DOCKER_NETWORK ]; then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_DOCKER_NETWORK" fi