From 8676f52924dc0d075baa30849dd3e1754d09a8a1 Mon Sep 17 00:00:00 2001 From: Julien Breux Date: Fri, 24 Sep 2021 10:58:28 +0200 Subject: [PATCH 1/3] feat(actions/locmapper): add LocMapper actions Signed-off-by: Julien Breux --- locmapper/Dockerfile | 2 ++ locmapper/README.md | 26 ++++++++++++++++++++++++++ locmapper/action.yml | 11 +++++++++++ 3 files changed, 39 insertions(+) create mode 100644 locmapper/Dockerfile create mode 100644 locmapper/README.md create mode 100644 locmapper/action.yml diff --git a/locmapper/Dockerfile b/locmapper/Dockerfile new file mode 100644 index 0000000..9802f0d --- /dev/null +++ b/locmapper/Dockerfile @@ -0,0 +1,2 @@ +# This Dockerfile is used to create a proxy for Github actions. +FROM happn/locmapper diff --git a/locmapper/README.md b/locmapper/README.md new file mode 100644 index 0000000..3a1dc10 --- /dev/null +++ b/locmapper/README.md @@ -0,0 +1,26 @@ +# LocMapper action + +## Basic usage + +```yaml +name: LocMapper +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: happn-tech/actions/locmapper@master + with: + command: 'lint' +``` + +## Inputs + +| Name | Type | Description | Default | Required | +| ------------------ | ---------------- | ----------------------------------------------------------------------------- | -------- | -------- | +| command | string | Default command | | - | diff --git a/locmapper/action.yml b/locmapper/action.yml new file mode 100644 index 0000000..c4eb2a4 --- /dev/null +++ b/locmapper/action.yml @@ -0,0 +1,11 @@ +name: 'LocMapper' +description: GitHub Action for using +inputs: + command: + description: 'Default input command' + required: true +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.command }} From b43ba8509862644c4a6aacfbf66193ba8ad2071c Mon Sep 17 00:00:00 2001 From: Julien Breux Date: Fri, 24 Sep 2021 16:20:36 +0200 Subject: [PATCH 2/3] fix(actions/locmapper): locmapper image tag Co-authored-by: Hugo Courtecuisse --- locmapper/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locmapper/Dockerfile b/locmapper/Dockerfile index 9802f0d..82c8866 100644 --- a/locmapper/Dockerfile +++ b/locmapper/Dockerfile @@ -1,2 +1,2 @@ # This Dockerfile is used to create a proxy for Github actions. -FROM happn/locmapper +FROM happn/locmapper:1.3 From 1ee015662b09452c353fdb48b6c7ce2c4c38ca09 Mon Sep 17 00:00:00 2001 From: Julien Breux Date: Fri, 24 Sep 2021 16:21:01 +0200 Subject: [PATCH 3/3] fix(actions/locmapper): fix description Co-authored-by: Hugo Courtecuisse --- locmapper/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locmapper/action.yml b/locmapper/action.yml index c4eb2a4..a82c209 100644 --- a/locmapper/action.yml +++ b/locmapper/action.yml @@ -1,5 +1,5 @@ name: 'LocMapper' -description: GitHub Action for using +description: GitHub Action for using locmapper cli inputs: command: description: 'Default input command'