diff --git a/.gitea/workflows/deploy-monitoring-prod.yml b/.gitea/workflows/deploy-monitoring-prod.yml index 80ccc6f..a6478b9 100644 --- a/.gitea/workflows/deploy-monitoring-prod.yml +++ b/.gitea/workflows/deploy-monitoring-prod.yml @@ -90,7 +90,7 @@ jobs: export SPRING_PROFILES_ACTIVE=PROD source_env_file ./health-agent/.env mkdir -p "${HEALTH_AGENT_CONFIG_GENERATED_DIR}" - if [ ! -f "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then + if [ ! -s "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then docker run --rm \ -v "${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated" \ --env-file "$(pwd)/health-agent/.env" \ diff --git a/.gitea/workflows/deploy-monitoring-test.yml b/.gitea/workflows/deploy-monitoring-test.yml index f271fc4..ea5b98e 100644 --- a/.gitea/workflows/deploy-monitoring-test.yml +++ b/.gitea/workflows/deploy-monitoring-test.yml @@ -80,7 +80,7 @@ jobs: export SPRING_PROFILES_ACTIVE=TEST source_env_file ./health-agent/.env mkdir -p "${HEALTH_AGENT_CONFIG_GENERATED_DIR}" - if [ ! -f "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then + if [ ! -s "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then docker run --rm \ -v "${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated" \ --env-file "$(pwd)/health-agent/.env" \