Add github action with latest docker version
This commit is contained in:
parent
e15e2741c1
commit
1f96f21f62
@ -0,0 +1,7 @@
|
|||||||
|
FROM docker:latest
|
||||||
|
|
||||||
|
RUN apk add bash
|
||||||
|
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
32
action.yml
32
action.yml
@ -1,10 +1,32 @@
|
|||||||
name: 'Starter Docker'
|
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:
|
inputs:
|
||||||
id:
|
image:
|
||||||
outputs:
|
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:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
args:
|
|
||||||
- ${{ inputs.id }}
|
|
1
entrypoint.sh
Normal file
1
entrypoint.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
#!/bin/bash
|
Loading…
Reference in New Issue
Block a user