Compare commits
2 Commits
master
...
ce7f37144e
| Author | SHA1 | Date | |
|---|---|---|---|
|
ce7f37144e
|
|||
|
b87f27f149
|
@@ -9,7 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: dreaded_x/workflows/.gitea/workflows/docker-kubernetes.yaml@ef78704b98c72e4a6b8340f9bff7b085a7bdd95c
|
||||
uses: dreaded_x/workflows/.gitea/workflows/docker-kubernetes.yaml@c50a935d1f1745f8c2775e828e57fc486048188c
|
||||
secrets: inherit
|
||||
with:
|
||||
push_manifests: false
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
-e AUTOMATION__SECRETS__MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} \
|
||||
-e AUTOMATION__SECRETS__HUE_TOKEN=${{ secrets.HUE_TOKEN }} \
|
||||
-e AUTOMATION__SECRETS__NTFY_TOPIC=${{ secrets.NTFY_TOPIC }} \
|
||||
$(echo ${{ toJSON(needs.build.outputs.images) }} | jq .automation -r)
|
||||
git.huizinga.dev/dreaded_x/automation_rs@${{ needs.build.outputs.digest }}
|
||||
|
||||
docker network connect web automation_rs
|
||||
|
||||
|
||||
@@ -25,18 +25,10 @@ function module.setup(mqtt_client)
|
||||
})
|
||||
windows.add(window)
|
||||
|
||||
local printer = devices.OutletOnOff.new({
|
||||
name = "3D Printer",
|
||||
room = "Guest Room",
|
||||
topic = helper.mqtt_z2m("guest/printer"),
|
||||
client = mqtt_client,
|
||||
})
|
||||
|
||||
--- @type Module
|
||||
return {
|
||||
light,
|
||||
window,
|
||||
printer,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -7,12 +7,27 @@ group "default" {
|
||||
|
||||
target "docker-metadata-action" {}
|
||||
|
||||
# TODO: Auto include this from the workflow
|
||||
target "common" {
|
||||
cache-from = [
|
||||
{
|
||||
type = "gha"
|
||||
}
|
||||
]
|
||||
cache-to = [
|
||||
{
|
||||
type = "gha"
|
||||
mode = "max"
|
||||
}
|
||||
]
|
||||
args = {
|
||||
RELEASE_VERSION = "${RELEASE_VERSION}"
|
||||
}
|
||||
}
|
||||
|
||||
target "automation" {
|
||||
inherits = ["docker-metadata-action"]
|
||||
inherits = ["docker-metadata-action", "common"]
|
||||
context = "./"
|
||||
dockerfile = "Dockerfile"
|
||||
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
|
||||
args = {
|
||||
RELEASE_VERSION="${RELEASE_VERSION}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user