From c680695ad03fa0225e41e3aaee919a994dc523aa Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Fri, 9 Sep 2022 20:52:02 +0200 Subject: [PATCH] ci(autobump): add autobump for evolution jobs Signed-off-by: Massimiliano Giovagnoli --- config/jobs/autobump/evolution.yaml | 64 +++++++++++++++++++ .../autobump/{autobump.yaml => infra.yaml} | 0 2 files changed, 64 insertions(+) create mode 100644 config/jobs/autobump/evolution.yaml rename config/jobs/autobump/{autobump.yaml => infra.yaml} (100%) diff --git a/config/jobs/autobump/evolution.yaml b/config/jobs/autobump/evolution.yaml new file mode 100644 index 00000000000..ca7061e9025 --- /dev/null +++ b/config/jobs/autobump/evolution.yaml @@ -0,0 +1,64 @@ +periodics: +- name: ci-prow-autobump-evolution + # interval: 15m + cron: "05 15 * * 1" # Run at 15:05 PST (15:05 UTC) Mon + decorate: true + extra_refs: + # Check out the repo containing the config and deployment files for your Prow instance. + - org: falcosecurity + repo: evolution + base_ref: main + spec: + containers: + - image: 292999226676.dkr.ecr.eu-west-1.amazonaws.com/test-infra/autobump # see images/autobump + imagePullPolicy: Always + command: + - /autobump.sh + args: + - /etc/github-token/oauth + # Make the bot name and email match the user data of the provided token's user. + - "Falco Automation" + - 51138685+poiana@users.noreply.github.com + - /root/gpg-signing-key/poiana.asc + - "EC9875C7B990D55F3B44D6E45F284448FF941C8F" + volumeMounts: + - name: service + mountPath: /etc/service-account + readOnly: true + - name: github + mountPath: /etc/github-token + readOnly: true + - name: gpg-signing-key + mountPath: /root/gpg-signing-key/ + readOnly: true + env: + # autobump.sh args + - name: GH_PROXY + value: https://api.github.com + # GitHub org containing the repo where the Prow config and component files live. + - name: GH_ORG + value: falcosecurity + # GitHub repo where the Prow config and component deployment files live. + - name: GH_REPO + value: evolution + # bump.sh args + # Repo relative path of the ProwJob config file or directory. + # Omit this if ProwJobs are only defined in config.yaml (or are not configured at all). + - name: JOB_CONFIG_PATH + value: .prow/ + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/service-account/service-account.json + volumes: + - name: service + secret: + secretName: gcloud-credentials + - name: github + secret: + # Secret containing a GitHub user access token with `repo` scope for creating PRs. + secretName: oauth-token + - name: gpg-signing-key + secret: + secretName: poiana-gpg-signing-key + defaultMode: 0400 + nodeSelector: + Archtype: "x86" diff --git a/config/jobs/autobump/autobump.yaml b/config/jobs/autobump/infra.yaml similarity index 100% rename from config/jobs/autobump/autobump.yaml rename to config/jobs/autobump/infra.yaml