From 9da66c647b91a8af86f52555a815c46009846ded Mon Sep 17 00:00:00 2001 From: incubator4 Date: Tue, 6 Feb 2024 13:54:50 +0800 Subject: [PATCH 1/2] chore: paths-ignore for deploy --- .github/workflows/docker-build-push-dev.yaml | 2 ++ .github/workflows/docker-build-push-prod.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/docker-build-push-dev.yaml b/.github/workflows/docker-build-push-dev.yaml index d4e32f44..4265658a 100644 --- a/.github/workflows/docker-build-push-dev.yaml +++ b/.github/workflows/docker-build-push-dev.yaml @@ -5,6 +5,8 @@ on: push: branches: - "dev" + paths-ignore: + - "deploy/**" jobs: build: diff --git a/.github/workflows/docker-build-push-prod.yaml b/.github/workflows/docker-build-push-prod.yaml index f15a5177..43c4622e 100644 --- a/.github/workflows/docker-build-push-prod.yaml +++ b/.github/workflows/docker-build-push-prod.yaml @@ -5,6 +5,8 @@ on: push: branches: - "main" + paths-ignore: + - "deploy/**" jobs: build: From fdc4b8e879e34c15452b617d5a5df3d62531a4eb Mon Sep 17 00:00:00 2001 From: incubator4 Date: Tue, 6 Feb 2024 13:55:33 +0800 Subject: [PATCH 2/2] chore(deploy): disable wrong metrics --- deploy/dev/deploy.yaml | 8 ++++---- deploy/prod/deploy.yaml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/deploy/dev/deploy.yaml b/deploy/dev/deploy.yaml index 6c4daa09..cdf953f8 100644 --- a/deploy/dev/deploy.yaml +++ b/deploy/dev/deploy.yaml @@ -19,10 +19,10 @@ spec: metadata: labels: app: xlog - annotations: - prometheus.io/path: /metrics - prometheus.io/port: "8080" - prometheus.io/scrape: "true" + # annotations: + # prometheus.io/path: /metrics + # prometheus.io/port: "8080" + # prometheus.io/scrape: "true" spec: enableServiceLinks: false initContainers: diff --git a/deploy/prod/deploy.yaml b/deploy/prod/deploy.yaml index 6ea32e6f..8752780f 100644 --- a/deploy/prod/deploy.yaml +++ b/deploy/prod/deploy.yaml @@ -5,7 +5,7 @@ metadata: namespace: crossbell spec: progressDeadlineSeconds: 600 - replicas: 10 + replicas: 7 revisionHistoryLimit: 5 selector: matchLabels: @@ -19,10 +19,10 @@ spec: metadata: labels: app: xlog - annotations: - prometheus.io/path: /metrics - prometheus.io/port: "8080" - prometheus.io/scrape: "true" + # annotations: + # prometheus.io/path: /metrics + # prometheus.io/port: "8080" + # prometheus.io/scrape: "true" spec: enableServiceLinks: false initContainers: