jobs: {
	pass: {
		env: {
			PASS: "secret://zzz/password"
		}
		image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
		files: "/run.sh": """
			#!/bin/sh
			cat << EOF > /run/secrets/output
			{
			    "type": "basic",
			    "data": {
			        "key": "value",
			        "pass": "$PASS"
			    }
			}
			EOF
			"""
		cmd: ["sh", "/run.sh"]
	}
	cronpass: {schedule: "* * * * *"} & pass
}

secrets: {
	zzz: {
		type: "basic"
		data: {
			password: "static"
		}
	}
	gen: {
		type: "generated"
		params: {
			format: "json"
			job:    "pass"
		}
	}
	gen2: {
		type: "generated"
		params: {
			format: "json"
			job:    "cronpass"
		}
	}
}
