added files for github action

This commit is contained in:
Pascal Sochacki 2020-02-24 10:04:45 +01:00 committed by Mike Farah
parent d356fa0d0b
commit da398765b8
3 changed files with 20 additions and 0 deletions

11
action.yml Normal file
View File

@ -0,0 +1,11 @@
name: 'YAML processor'
description: 'YAML processor for running in Github action'
inputs:
cmd:
description: 'The Command which should be run'
required: true
runs:
using: 'docker'
image: 'github-action/Dockerfile'
args:
- ${{ inputs.cmd }}

5
github-action/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM mikefarah/yq:3
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

4
github-action/entrypoint.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh -l
echo "$1"
eval $1