From 7041a58df92d316a6e883f160be9fb75c9c32f12 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Tue, 29 Oct 2024 10:36:00 +0100 Subject: [PATCH] starlark to the rescue? --- .drone.star | 21 +++++++++++++++++++++ .drone.yml | 23 ----------------------- .project | 6 ++++++ .pydevproject | 5 +++++ apps/drone/live.hcl | 1 + apps/homer/live.hcl | 2 +- 6 files changed, 34 insertions(+), 24 deletions(-) create mode 100644 .drone.star delete mode 100644 .drone.yml create mode 100644 .pydevproject diff --git a/.drone.star b/.drone.star new file mode 100644 index 0000000..5f94245 --- /dev/null +++ b/.drone.star @@ -0,0 +1,21 @@ +def main(ctx): + return { + "kind": "pipeline", + "type": "docker", + "name": "nomad-nummer5", + "platform": [ + { + "os": "linux", + "arch": "arm64" + } + ], + "steps": [ + { + "name": "git log", + "image": "cr.wks/debian-stable", + "commands": [ + "git diff-tree --no-commit-id --name-only HEAD -r" + ] + } + ] + } \ No newline at end of file diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 6807028..0000000 --- a/.drone.yml +++ /dev/null @@ -1,23 +0,0 @@ -kind: pipeline -type: docker -name: nomad-nummer5 - -platform: - os: linux - arch: arm64 - - -environment: - TARGET_HOST: "test.chaos" - -steps: -- name: git log - image: cr.wks/debian-stable - commands: - - git diff-tree --no-commit-id --name-only HEAD -r -- name: test - image: alpine - commands: - - echo hello - - echo world - - echo $TARGET_HOST diff --git a/.project b/.project index 24caa84..94a4c46 100644 --- a/.project +++ b/.project @@ -5,7 +5,13 @@ + + org.python.pydev.PyDevBuilder + + + + org.python.pydev.pythonNature diff --git a/.pydevproject b/.pydevproject new file mode 100644 index 0000000..2b04565 --- /dev/null +++ b/.pydevproject @@ -0,0 +1,5 @@ + + + Default + python interpreter + diff --git a/apps/drone/live.hcl b/apps/drone/live.hcl index d85fa69..15163ba 100644 --- a/apps/drone/live.hcl +++ b/apps/drone/live.hcl @@ -71,6 +71,7 @@ job "drone" { DRONE_SERVER_HOST = "drone.service.nr5" DRONE_SERVER_PROTO = "http" DRONE_JSONNET_ENABLED = true + DRONE_STARLARK_ENABLED = true DRONE_LOGS_DEBUG = true DRONE_LOGS_TRACE = true DRONE_USER_CREATE = "username:do,admin:true" diff --git a/apps/homer/live.hcl b/apps/homer/live.hcl index 7373b14..02851ec 100644 --- a/apps/homer/live.hcl +++ b/apps/homer/live.hcl @@ -35,7 +35,7 @@ job "homer" { driver = "podman" config { - image = "b4bz/homer:latest" + image = "docker.io/b4bz/homer:latest" ports = ["http"] }