Skip to content

Commit

Permalink
refactor: standartize task naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jan 13, 2025
1 parent 56bb870 commit dd704c6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:
set -ex
docker pull darkwind8/darkstat:production
sleep 5
docker service update --image darkwind8/darkstat:production darkstat-production
docker service update --image darkwind8/darkstat:production production-darkstat-web
env:
DOCKER_HOST: ssh://root@darkbot
2 changes: 1 addition & 1 deletion .github/workflows/docker-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
set -ex
docker pull darkwind8/darkstat:staging
sleep 5
docker service update --image darkwind8/darkstat:staging darkstat-staging
docker service update --image darkwind8/darkstat:staging staging-darkstat-web
env:
DOCKER_HOST: ssh://root@darkbot
2 changes: 2 additions & 0 deletions kcls/build.k
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ _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"
})
]

Expand Down
2 changes: 1 addition & 1 deletion tf/modules/darkstat/cron.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ locals {
}
// ensures to catch new Discovery version
resource "docker_container" "cron_restart" {
name = "darkstat-cron-restart-${var.environment}"
name = "${var.environment}-darkstat-cron-restart"
image = docker_image.docker_cli.image_id
restart = "always"
tty = true
Expand Down
2 changes: 1 addition & 1 deletion tf/modules/darkstat/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data "docker_network" "caddy" {
}

resource "docker_service" "darkstat" {
name = "darkstat-${var.environment}"
name = "${var.environment}-darkstat-web"

task_spec {
networks_advanced {
Expand Down

0 comments on commit dd704c6

Please sign in to comment.