diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml new file mode 100644 index 0000000000..96415221a6 --- /dev/null +++ b/.github/workflows/helm.yml @@ -0,0 +1,103 @@ +name: Docker + +on: + workflow_dispatch: + pull_request: + branches: + - main + paths-ignore: + - 'site/**' + +permissions: + contents: read + +jobs: + docker: + name: Docker + runs-on: ubuntu-20.04 + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + ipFamily: [ipv4, ipv6] + deployment: [singleNode, multiNode] + env: + JOB_NAME: "docker-${{ matrix.deployment }}-${{ matrix.ipFamily }}" + IP_FAMILY: ${{ matrix.ipFamily }} + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + + - name: Install kind + run: sudo make install INSTALL_DIR=/usr/local/bin + + - name: Install kubectl + run: | + curl -LO https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl + chmod +x ./kubectl + sudo mv ./kubectl /usr/local/bin/kubectl + + - name: Enable ipv4 and ipv6 forwarding + run: | + sudo sysctl -w net.ipv6.conf.all.forwarding=1 + sudo sysctl -w net.ipv4.ip_forward=1 + + - name: Create single node cluster + if: ${{ matrix.deployment == 'singleNode' }} + run: | + cat <