starlark to the rescue?

This commit is contained in:
2024-10-29 10:36:00 +01:00
parent 4cd1e9ebd4
commit 7041a58df9
6 changed files with 34 additions and 24 deletions

21
.drone.star Normal file
View File

@@ -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"
]
}
]
}

View File

@@ -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

View File

@@ -5,7 +5,13 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>

5
.pydevproject Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
</pydev_project>

View File

@@ -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"

View File

@@ -35,7 +35,7 @@ job "homer" {
driver = "podman"
config {
image = "b4bz/homer:latest"
image = "docker.io/b4bz/homer:latest"
ports = ["http"]
}