Skip to content

Commit

Permalink
ci(.github): enable self hosted runners for AMD64 E2E tasks (#10945)
Browse files Browse the repository at this point in the history
* ci(.github): enable self hosted runners for AMD64 e2e tasks
* add image pulling steps
* add a script to sync docker credentials into k3d/kind clusters
* use docker credentials when creating clusters
---------

Signed-off-by: Jay Chen <[email protected]>
Signed-off-by: Charly Molter <[email protected]>
Co-authored-by: Charly Molter <[email protected]>
  • Loading branch information
2 people authored and kumahq[bot] committed Dec 16, 2024
1 parent a8b695f commit 9e90869
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ jobs:
- name: "Run E2E tests"
env:
DOCKERHUB_PULL_CREDENTIAL: ${{ secrets.DOCKERHUB_PULL_CREDENTIAL }}
<<<<<<< HEAD
KUMA_DEBUG: ${{ runner.debug == '1' || vars.ENABLE_E2E_DEBUG_GLOBALLY == 'true' }}
=======
>>>>>>> 126029d11 (ci(.github): enable self hosted runners for AMD64 E2E tasks (#10945))
run: |
if [[ "${{ env.E2E_PARAM_K8S_VERSION }}" == "kindIpv6" ]]; then
export IPV6=true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-test-distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ jobs:
uses: ./.github/workflows/_test.yaml
with:
FULL_MATRIX: ${{ needs.check.outputs.FULL_MATRIX }}
<<<<<<< HEAD
RUNNERS_BY_ARCH: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) && '{"amd64":"ubuntu-latest-kong","arm64":"ubuntu-latest-arm64-kong"}' || '{"amd64":"ubuntu-latest","arm64":""}' }}
=======
RUNNERS_BY_ARCH: ${{ (github.event_name == 'push' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) && '{"amd64":"ubuntu-latest-kong","arm64":"ubuntu-latest-arm64-kong"}' || '{"amd64":"ubuntu-latest","arm64":""}' }}
>>>>>>> 126029d11 (ci(.github): enable self hosted runners for AMD64 E2E tasks (#10945))
secrets: inherit
build_publish:
permissions:
Expand Down
5 changes: 5 additions & 0 deletions mk/k3d.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ k3d/setup-docker-credentials:
k3d/cleanup-docker-credentials:
@rm -f /tmp/.kuma-dev/k3d-registry.yaml

<<<<<<< HEAD
$(TOP)/$(KUMA_DIR)/test/k3d/calico.$(K3D_VERSION).yaml:
@mkdir -p $(TOP)/$(KUMA_DIR)/test/k3d
curl --location --fail --silent --retry 5 \
Expand All @@ -137,6 +138,10 @@ $(TOP)/$(KUMA_DIR)/test/k3d/calico.$(K3D_VERSION).yaml:
k3d/start: ${KIND_KUBECONFIG_DIR} k3d/network/create k3d/setup-docker-credentials \
$(if $(findstring calico,$(K3D_NETWORK_CNI)),$(TOP)/$(KUMA_DIR)/test/k3d/calico.$(K3D_VERSION).yaml)

=======
.PHONY: k3d/start
k3d/start: ${KIND_KUBECONFIG_DIR} k3d/network/create k3d/setup-docker-credentials
>>>>>>> 126029d11 (ci(.github): enable self hosted runners for AMD64 E2E tasks (#10945))
@echo "PORT_PREFIX=$(PORT_PREFIX)"
@KUBECONFIG=$(KIND_KUBECONFIG) \
$(K3D_BIN) cluster create "$(KIND_CLUSTER_NAME)" $(K3D_CLUSTER_CREATE_OPTS)
Expand Down

0 comments on commit 9e90869

Please sign in to comment.