From 9950552e4838cf529ee598f9b5bc716bef1b6590 Mon Sep 17 00:00:00 2001 From: AminYacine <78700458+AminYacine@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:44:16 +0200 Subject: [PATCH] setup basic action --- Dockerfile | 5 +++++ action.yml | 18 ++++++++++++++++++ entrypoint.sh | 4 ++++ 3 files changed, 27 insertions(+) create mode 100644 Dockerfile create mode 100644 action.yml create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4a55539 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:latest + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT [ "/entrypoint.sh" ] \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..622cabc --- /dev/null +++ b/action.yml @@ -0,0 +1,18 @@ +name: "miranum-cli-action" +description: "Use the miranum cli and deploy your artefacts to your application." +author: "Amin Yacine" + +inputs: + project-directory: + description: 'directory of project files' + required: true + default: '.' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ iputs.project-directory }} + +branding: + icon: 'activity' + color: 'blue' \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..10ee3bc --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh -l + +docker pull miragon/process-ide-cli +docker run miragon/process-ide-cli node main.js deploy -d example/ -t local