starlark to the rescue?
This commit is contained in:
21
.drone.star
Normal file
21
.drone.star
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
23
.drone.yml
23
.drone.yml
@@ -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
|
||||
6
.project
6
.project
@@ -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
5
.pydevproject
Normal 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>
|
||||
@@ -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"
|
||||
|
||||
@@ -35,7 +35,7 @@ job "homer" {
|
||||
driver = "podman"
|
||||
|
||||
config {
|
||||
image = "b4bz/homer:latest"
|
||||
image = "docker.io/b4bz/homer:latest"
|
||||
ports = ["http"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user