From 7e1eb316ff7855ef8224d881cfbd79397c2182f2 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sun, 8 Oct 2023 14:22:30 +0200 Subject: [PATCH] slight improvements --- .github/workflows/auto-pr.yaml | 22 ++++++++++++++++++++++ kluster/whoami/deploymentreference.yaml | 9 +-------- 2 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/auto-pr.yaml diff --git a/.github/workflows/auto-pr.yaml b/.github/workflows/auto-pr.yaml new file mode 100644 index 0000000..17e76fb --- /dev/null +++ b/.github/workflows/auto-pr.yaml @@ -0,0 +1,22 @@ +name: Staging Auto-PR +on: + create: + branches: ['ci-update'] + +jobs: + pull-request: + name: Open PR to main + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + name: checkout + + - uses: repo-sync/pull-request@v2 + name: pull-request + with: + destination_branch: "main" + pr_title: "Pulling ${{ github.ref }} into main" + pr_body: "👑 *An automated PR*" + pr_reviewer: "kingdonb" + pr_draft: true + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/kluster/whoami/deploymentreference.yaml b/kluster/whoami/deploymentreference.yaml index 3ebd6a9..ebf3c59 100644 --- a/kluster/whoami/deploymentreference.yaml +++ b/kluster/whoami/deploymentreference.yaml @@ -6,15 +6,8 @@ metadata: spec: force: true interval: 1m0s - path: .apps/whoami/overlays/main + path: ./apps/whoami/overlays/main prune: false sourceRef: kind: GitRepository name: flux-system - - - -# apiVersion: kustomize.toolkit.fluxcd.io/v1 -# kind: HelmRelease -# ... -