diff --git a/Dockerfile b/Dockerfile index e69de29..3450511 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM docker:latest + +RUN apk add bash + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/action.yml b/action.yml index 3bac777..555afa7 100644 --- a/action.yml +++ b/action.yml @@ -1,10 +1,32 @@ name: 'Starter Docker' -description: 'Starter Docker Github Action for build the image and docker runtime.' +description: 'Starter Docker GitHub Action for CUBETIQ and docker environment.' inputs: - id: -outputs: + image: + description: 'Docker image name' + required: true + options: + description: 'Docker options' + required: false + run: + description: 'Run commands inside container' + required: false + shell: + description: 'Use a specific shell for run commands' + required: false + default: sh + registry: + description: 'Docker registry endpoint' + required: false + username: + description: 'Docker registry username' + required: false + password: + description: 'Docker registry password' + required: false + docker_network: + description: 'Docker network' + default: ${{ job.container.network }} + required: false runs: using: 'docker' - image: 'Dockerfile' - args: - - ${{ inputs.id }} \ No newline at end of file + image: 'Dockerfile' \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..a9bf588 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1 @@ +#!/bin/bash