From 874408fb4716d7226579cce6359cfb1abc308330 Mon Sep 17 00:00:00 2001 From: Kishen V Date: Tue, 25 Jun 2024 18:45:57 +0530 Subject: [PATCH] Add workflow to build kind cluster components --- .github/workflows/kind-dependent-images.yaml | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/kind-dependent-images.yaml diff --git a/.github/workflows/kind-dependent-images.yaml b/.github/workflows/kind-dependent-images.yaml new file mode 100644 index 0000000..33b59b3 --- /dev/null +++ b/.github/workflows/kind-dependent-images.yaml @@ -0,0 +1,63 @@ +name: Build kind cluster component images + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + packages: write + strategy: + fail-fast: false + env: + # Use docker.io for Docker Hub if empty + IMAGE_REGISTRY: quay.io + + + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.6 + + - name: Log into registry ${{ env.IMAGE_REGISTRY }} + uses: docker/login-action@v3 + with: + registry: ${{ env.IMAGE_REGISTRY }} + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + + - name: Clone and patch kubernetes-sigs/kind repository + run: | + git clone --depth 1 --branch v0.23.0 https://github.com/kubernetes-sigs/kind.git + cd kind + git apply ../build-ppc64le.patch + + - name: Build local-path-provisioner + working-directory: ./kind + run: | + make -C images/local-path-provisioner push + + - name: Build local-path-helper + working-directory: ./kind + run: | + make -C images/local-path-helper push + + - name: Build base + working-directory: ./kind + run: | + make -C images/base push + + - name: Build kindnetd + working-directory: ./kind + run: | + make -C images/kindnetd push + + - name: Build haproxy + working-directory: ./kind + run: | + make -C images/haproxy push