From 3a73d31f373430c3499f1e6e2f9565a34faf5af9 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 4 Sep 2022 23:34:09 +0200 Subject: Removed hello and added ev-scripts deploy --- eventline/ev-scripts-deploy.sh | 15 +++++++++++++++ eventline/ev-scripts-deploy.yaml | 4 ++++ hello/hello.yaml | 8 -------- 3 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 eventline/ev-scripts-deploy.sh create mode 100644 eventline/ev-scripts-deploy.yaml delete mode 100644 hello/hello.yaml diff --git a/eventline/ev-scripts-deploy.sh b/eventline/ev-scripts-deploy.sh new file mode 100644 index 0000000..c6b6f0d --- /dev/null +++ b/eventline/ev-scripts-deploy.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euo pipefail + +WORKDIR="/tmp/ev-scripts-deploy" + +cleanup() { + cd + rm -rf ${WORKDIR} +} + +trap cleanup EXIT + +git clone -q --depth 1 https://git.adyxax.org/adyxax/ev-scripts.git ${WORKDIR} +cd ${WORKDIR} +make run diff --git a/eventline/ev-scripts-deploy.yaml b/eventline/ev-scripts-deploy.yaml new file mode 100644 index 0000000..3dd5d2a --- /dev/null +++ b/eventline/ev-scripts-deploy.yaml @@ -0,0 +1,4 @@ +name: "ev-scripts-deploy" +steps: + - script: + path: "ev-scripts-deploy.sh" diff --git a/hello/hello.yaml b/hello/hello.yaml deleted file mode 100644 index 7af44cd..0000000 --- a/hello/hello.yaml +++ /dev/null @@ -1,8 +0,0 @@ -name: "hello" -trigger: - event: "time/tick" - parameters: - periodic: 60 -steps: - - code: | - echo "Hello world!" -- cgit v1.2.3