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"]
|
34
action.yml
34
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 }}
|
||||
image: 'Dockerfile'
|
1
entrypoint.sh
Normal file
1
entrypoint.sh
Normal file
@ -0,0 +1 @@
|
||||
#!/bin/bash
|
Loading…
Reference in New Issue
Block a user