From 4fa508bcaf5585016df93acf9429bc7e17b5f034 Mon Sep 17 00:00:00 2001 From: dd84ai Date: Mon, 13 Jan 2025 07:05:34 +0100 Subject: [PATCH] refactor: standartize app naming --- .github/workflows/docker-production.yml | 2 +- .github/workflows/docker-staging.yml | 2 +- kcls/build.k | 2 -- tf/modules/darkstat/main.tf | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-production.yml b/.github/workflows/docker-production.yml index 7cedf4e..494e5e2 100644 --- a/.github/workflows/docker-production.yml +++ b/.github/workflows/docker-production.yml @@ -49,6 +49,6 @@ jobs: set -ex docker pull darkwind8/darkstat:production sleep 5 - docker service update --image darkwind8/darkstat:production production-darkstat-web + docker service update --image darkwind8/darkstat:production production-darkstat-app env: DOCKER_HOST: ssh://root@darkbot diff --git a/.github/workflows/docker-staging.yml b/.github/workflows/docker-staging.yml index 2717e1e..1fa73eb 100644 --- a/.github/workflows/docker-staging.yml +++ b/.github/workflows/docker-staging.yml @@ -45,6 +45,6 @@ jobs: set -ex docker pull darkwind8/darkstat:staging sleep 5 - docker service update --image darkwind8/darkstat:staging staging-darkstat-web + docker service update --image darkwind8/darkstat:staging staging-darkstat-app env: DOCKER_HOST: ssh://root@darkbot diff --git a/kcls/build.k b/kcls/build.k index 3f01923..f5cc9b8 100644 --- a/kcls/build.k +++ b/kcls/build.k @@ -14,13 +14,11 @@ _workflows = [ image_name = _image_name service_name = "darkstat" environment = "staging" - task_name = "web" }) workflow.DockerDeploySwarm(workflow.DockerDeploySwarmOpts { image_name = _image_name service_name = "darkstat" environment = "production" - task_name = "web" }) ] diff --git a/tf/modules/darkstat/main.tf b/tf/modules/darkstat/main.tf index 1005d20..652958d 100644 --- a/tf/modules/darkstat/main.tf +++ b/tf/modules/darkstat/main.tf @@ -14,7 +14,7 @@ data "docker_network" "caddy" { } resource "docker_service" "darkstat" { - name = "${var.environment}-darkstat-web" + name = "${var.environment}-darkstat-app" task_spec { networks_advanced {