Skip to content

Redeploy of all services if one thing changes #1055

@xfallme

Description

@xfallme

Description

My doco-cd instance just ran a redeploy of all services even though the variable was not set (redeploy default to false according to the wiki). In this case, this commit, or rather the webhook, triggered the redeploy.

It doesn't seem to do this every time, is this related to using 1Password as secret provider?

Steps to reproduce the issue

1. Configure this '....'
2. Deploy to '....'
3. See error

Operating System

Linux

Docker Compose File

services:
  app:
    image: ghcr.io/kimdre/doco-cd:0.69.0
    hostname: doco-cd
    networks:
      - external_proxy_network
    environment:
      TZ: Europe/Vienna
      GIT_ACCESS_TOKEN_FILE: /run/secrets/git_access_token
      <<: *poll-config
      SECRET_PROVIDER: 1password
      SECRET_PROVIDER_ACCESS_TOKEN_FILE: /run/secrets/1password_service_account_token
      WEBHOOK_SECRET_FILE: /run/secrets/webhook_secret
    secrets:
      - git_access_token
      - 1password_service_account_token
      - webhook_secret
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /mnt/swarm-data/doco-cd/data:/data
    healthcheck:
      test: [ "CMD", "/doco-cd", "healthcheck" ]
      start_period: 120s # higher because of 1password
      interval: 30s
      timeout: 5s
      retries: 3
    deploy:
      resources:
        limits:
          memory: 512M

Deployment Config

name: test
destroy: false
working_dir: /deploy/test
compose_files: 
  - test.compose.yaml
external_secrets:
  INTERNAL_DOMAIN: "op://GitOps/Data/internal_domain"
  EXTERNAL_DOMAIN: "op://GitOps/Data/external_domain"
---
name: reverse_proxy
working_dir: /deploy/reverse_proxy
compose_files:
  - reverse_proxy.compose.yaml
external_secrets:
  EMAIL: "op://GitOps/Data/email"
  CROWDSEC_API_KEY: "op://GitOps/CADDY_CROWDSEC_API_KEY/credential"
  INTERNAL_DOMAIN: "op://GitOps/Data/internal_domain"
  EXTERNAL_DOMAIN: "op://GitOps/Data/external_domain"
  CLOUDFLARE_API_TOKEN: "op://GitOps/CADDY_CLOUDFLARE_API_TOKEN/credential"
---
name: sso
working_dir: /deploy/sso
compose_files:
  - sso.compose.yaml
external_secrets:
  EXTERNAL_DOMAIN: "op://GitOps/Data/external_domain"
  POCKET_ID_ENCRYPTION_KEY: "op://GitOps/POCKET_ID_ENCRYPTION_KEY/credential"
  POCKET_ID_MAXMIND_GEOLITE_LICENSE_KEY: "op://GitOps/POCKET_ID_MAXMIND_GEOLITE_LICENSE_KEY/credential"

Logs

{"time":"2026-03-01T22:59:37.223693591+01:00","level":"info","msg":"received new job","job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm","trigger":{"commit":"1318569efee71306f9b56e7db97f8dad2b52303b","event":"webhook","ref":"refs/heads/main"}}
{"time":"2026-03-01T23:01:30.63868264+01:00","level":"info","msg":"deploying swarm stack","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"sso","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:35.639450353+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"sso","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:37.170608924+01:00","level":"info","msg":"deploying swarm stack","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"test","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:40.639148073+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"sso","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:42.171793514+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"test","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:43.766340015+01:00","level":"info","msg":"deploying swarm stack","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:45.639423788+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"sso","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:46.771616622+01:00","level":"info","msg":"prune images on swarm nodes","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"sso","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:47.171352744+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"test","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:48.766626751+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:50.639842305+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"sso","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:52.171585522+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"test","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:53.767000045+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:56.449905453+01:00","level":"info","msg":"prune images on swarm nodes","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"test","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:57.171365818+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"test","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:01:58.767665728+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:02:03.767227114+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:02:08.767132505+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:02:12.137664064+01:00","level":"info","msg":"prune images on swarm nodes","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:02:13.767966617+01:00","level":"info","msg":"deployment in progress","deploy":{"reference":"refs/heads/main","repository":"github.com/xfallme/homelab-swarm","stack":"reverse_proxy","stage":"deploy"},"job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}
{"time":"2026-03-01T23:02:17.230411195+01:00","level":"info","msg":"job completed successfully","elapsed_time":"2m40.006s","job_id":"019cab6a-019e-721b-b1c4-66083e60633f","repository":"github.com/xfallme/homelab-swarm"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions