Add github action with latest docker version

This commit is contained in:
Sambo Chea 2021-03-26 20:30:02 +07:00
parent e15e2741c1
commit 1f96f21f62
3 changed files with 36 additions and 6 deletions

View File

@ -0,0 +1,7 @@
FROM docker:latest
RUN apk add bash
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -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 }}

1
entrypoint.sh Normal file
View File

@ -0,0 +1 @@
#!/bin/bash