From 1f96f21f62486b3b23c1778ed3aa1abf5232dfd9 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 20:30:02 +0700 Subject: [PATCH] Add github action with latest docker version --- Dockerfile | 7 +++++++ action.yml | 34 ++++++++++++++++++++++++++++------ entrypoint.sh | 1 + 3 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 entrypoint.sh 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