From 15b528ff7404c351b8029c3642d4dd7e39dcda45 Mon Sep 17 00:00:00 2001 From: Jan von Loewenstein Date: Thu, 1 Oct 2026 13:29:37 +0200 Subject: [PATCH] Use reusable action to stand up CF on KinD --- .github/workflows/e2e.yml | 32 ++------------------------------ .github/workflows/kind-cats.yaml | 32 ++------------------------------ 2 files changed, 4 insertions(+), 60 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 07c9f4ac..2fa9e96b 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -12,37 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - name: Set kernel settings - run: | - docker run --rm \ - --privileged \ - --pid host \ - -v /lib/modules:/lib/modules:ro \ - alpine sh -c "sysctl -w fs.inotify.max_user_instances=512 && modprobe nfs && modprobe nfsd" - - name: Install dependencies - run: | - mkdir -p $HOME/.local/bin && echo "$HOME/.local/bin" >> "$GITHUB_PATH" - curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=${CF_CLI_VERSION}&source=github" | tar -zx - mv cf8 $HOME/.local/bin/cf - env: - CF_CLI_VERSION: "8.18.3" - - name: setup Go - uses: actions/setup-go@v7 + - uses: cloudfoundry/kind-deployment/.github/actions/setup-cf@main with: - go-version-file: go.mod - cache: false - - name: checkout kind-deployment - uses: actions/checkout@v7 - with: - repository: "cloudfoundry/kind-deployment" - path: "kind" - - name: Run make up - run: | - cd kind && make up - - name: Login - run: cd kind && make login - - name: Init - run: cd kind && make bootstrap-complete + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build cnbapplifecycle.tgz run: make copy-binaries package - name: Load updated cnbapplifecycle.tgz into kind diff --git a/.github/workflows/kind-cats.yaml b/.github/workflows/kind-cats.yaml index 92c074df..b8312fb3 100644 --- a/.github/workflows/kind-cats.yaml +++ b/.github/workflows/kind-cats.yaml @@ -13,37 +13,9 @@ jobs: contents: read steps: - uses: actions/checkout@v7 - - name: Set kernel settings - run: | - docker run --rm \ - --privileged \ - --pid host \ - -v /lib/modules:/lib/modules:ro \ - alpine sh -c "sysctl -w fs.inotify.max_user_instances=512 && modprobe nfs && modprobe nfsd" - - name: Install dependencies - run: | - mkdir -p $HOME/.local/bin && echo "$HOME/.local/bin" >> "$GITHUB_PATH" - curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=${CF_CLI_VERSION}&source=github" | tar -zx - mv cf8 $HOME/.local/bin/cf - env: - CF_CLI_VERSION: "8.18.3" - - name: setup Go - uses: actions/setup-go@v7 + - uses: cloudfoundry/kind-deployment/.github/actions/setup-cf@main with: - go-version-file: go.mod - cache: false - - name: checkout kind-deployment - uses: actions/checkout@v7 - with: - repository: "cloudfoundry/kind-deployment" - path: "kind" - - name: Run make up - run: | - cd kind && make up - - name: Login - run: cd kind && make login - - name: Init - run: cd kind && make bootstrap-complete + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build cnbapplifecycle.tgz run: make copy-binaries package - name: Load updated cnbapplifecycle.tgz into kind