Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Migrate k8s autodiscovery pipeline #17

Migrate k8s autodiscovery pipeline

Migrate k8s autodiscovery pipeline #17

name: k8s-autodiscovery
on:
pull_request: ~
schedule:
- cron: '0 18 * * *'
jobs:
# deploy-test-infra:
# runs-on: ubuntu-latest
k8s-autodiscovery:
# needs:
# - deploy-test-infra
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: "kubernetes autodiscover with elastic-agent"
tags: "elastic-agent"
platforms: [ "debian_10_amd64" ]
# - name: "kubernetes autodiscover with filebeat"
# tags: "filebeat"
# platforms: [ "debian_10_amd64" ]
# - name: "kubernetes autodiscover with heartbeat"
# tags: "heartbeat"
# platforms: [ "debian_10_amd64" ]
# - name: "kubernetes autodiscover with metricbeat"
# tags: "metricbeat"
# platforms: [ "debian_10_amd64" ]
env:
E2E_SSH_KEY: ${{ github.workspace }}/e2essh
E2E_SSH_KEY_PUB: ${{ github.workspace }}/e2essh.pub
SSH_KEY: ${{ github.workspace }}/e2essh # TODO: Refactor
ANSIBLE_CONFIG: ./.ci/ansible/ansible.cfg
ANSIBLE_HOST_KEY_CHECKING: False
STACK_INSTANCE_ID: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}_stack
STACK_VERSION: 8.9.0-473a43eb-SNAPSHOT
steps:
- uses: actions/checkout@v2
- id: get-go-version
name: Setup Env
run: |
echo "GO_VERSION=$(cat .go-version)" >> "$GITHUB_ENV"
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
# - name: Install kind
# run: go install sigs.k8s.io/[email protected]
- run: .ci/scripts/k8s-discovery-test.sh