From 57f76c18b1842fcee3e34a5b3611ec6a5c9b641a Mon Sep 17 00:00:00 2001 From: Arik Kfir Date: Sun, 14 Jul 2024 14:31:12 +0300 Subject: [PATCH] feat: support sending logs to GCP This change adds support for sending logs to GCP Logging, for easier inspection after failed CI runs, or even for local development logs. --- .github/workflows/build.yaml | 6 ++++++ Makefile | 8 +++++++- .../observability/otel/collector/agent-values.yaml | 13 +++++++++++++ .../local/security/gcp-service-account/.gitignore | 1 + .../security/gcp-service-account/kustomization.yaml | 11 +++++++++++ scripts/setup-observability.sh | 2 ++ 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 deploy/local/security/gcp-service-account/.gitignore create mode 100644 deploy/local/security/gcp-service-account/kustomization.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2408bb7..9660e8b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -102,6 +102,12 @@ jobs: - run: echo -n ${GITHUB_TOKEN} | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: | + cat > deploy/local/security/gcp-service-account/service-account-key.json <