diff --git a/WORKSPACE b/WORKSPACE index e1c4c56e..9188d923 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -164,6 +164,13 @@ http_file( downloaded_file_path = "factorio.tar.xz", ) +http_file( + name = "factorio-headless-0.18.12", + urls = ["https://factorio.com/get-download/0.18.12/headless/linux64"], + sha256 = "e0c6a46d66cfc02cba294a5fd34265e7e7a5168b8c8a7b16ad8dbac31470ed33", + downloaded_file_path = "factorio.tar.xz", +) + # Go rules http_archive( diff --git a/personal/q3k/factorio/BUILD b/personal/q3k/factorio/BUILD index 9c8bed83..39b373bb 100644 --- a/personal/q3k/factorio/BUILD +++ b/personal/q3k/factorio/BUILD @@ -37,11 +37,20 @@ container_image( entrypoint = ["/entrypoint.sh"], ) +container_image( + name="0.18.12-2", + base="@prodimage-bionic//image", + tars = ["@factorio-headless-0.18.12//file"], + files = [":entrypoint.sh"], + directory = "/", + entrypoint = ["/entrypoint.sh"], +) + container_push( name = "push_latest", - image = ":0.17.79-1", + image = ":0.18.12-2", format = "Docker", registry = "registry.k0.hswaw.net", repository = "app/factorio", - tag = "0.17.79-1", + tag = "0.18.12-2", ) diff --git a/personal/q3k/factorio/kube/prod.jsonnet b/personal/q3k/factorio/kube/prod.jsonnet index 523ba8bf..c1ee8e26 100644 --- a/personal/q3k/factorio/kube/prod.jsonnet +++ b/personal/q3k/factorio/kube/prod.jsonnet @@ -7,6 +7,7 @@ local kube = import "../../../../kube/kube.libsonnet"; // - 0.17.41-1 // - 0.17.52-1 // - 0.17.79-1 +// - 0.18.12-2 { local prod = self, @@ -20,5 +21,5 @@ local kube = import "../../../../kube/kube.libsonnet"; } }, - q3k: prod.instance("q3k", "0.17.79-1"), + q3k: prod.instance("q3k", "0.18.12-2"), }