diff --git a/README.md b/README.md index 5b546b2..f18ec55 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,15 @@ ![.github/workflows/main.yml](https://github.com/getfem-doc/getfem-github-actions/workflows/.github/workflows/main.yml/badge.svg) GetFEM GitHub Actions + +## Inputs + +None + +## Outputs + +None + +## Example usage + +uses: actions/getfem-github-actions@v1 diff --git a/getfem-github-actions/Dockerfile b/getfem-github-actions/Dockerfile new file mode 100644 index 0000000..1557ecd --- /dev/null +++ b/getfem-github-actions/Dockerfile @@ -0,0 +1,8 @@ +# Container image that runs your code +FROM getfemdoc/getfem:latest + +# Copies your code file from your action repository to the filesystem path `/` of the container +COPY entrypoint.sh /entrypoint.sh + +# Code file to execute when the docker container starts up (`entrypoint.sh`) +ENTRYPOINT ["/entrypoint.sh"] diff --git a/getfem-github-actions/action.yml b/getfem-github-actions/action.yml new file mode 100644 index 0000000..fb6b0bc --- /dev/null +++ b/getfem-github-actions/action.yml @@ -0,0 +1,8 @@ +# action.yml +name: 'getfem-github-actions' +description: 'Run in getfem latest' +inputs: +outputs: +runs: + using: 'docker' + image: 'Dockerfile' diff --git a/getfem-github-actions/entrypoint.sh b/getfem-github-actions/entrypoint.sh new file mode 100644 index 0000000..aa3ab35 --- /dev/null +++ b/getfem-github-actions/entrypoint.sh @@ -0,0 +1 @@ +#!/bin/sh -l