Skip to content

e2e

e2e #322

Workflow file for this run

name: e2e
on:
schedule:
- cron: "0 16 * * *"
workflow_dispatch:
inputs:
ref:
description: "Acceptable content: branch/tag/commit ID."
required: true
default: 'master'
defaults:
run:
shell: bash
jobs:
e2e:
name: e2e
runs-on:
- self-hosted
- nebula
steps:
- uses: webiny/[email protected]
with:
run: sh -c "find . -mindepth 1 -delete"
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- uses: docker/login-action@v2
with:
registry: ${{ secrets.HARBOR_REGISTRY }}
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- run: |
git config --global --add safe.directory $(pwd)
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: build operator image
run: |
export DOCKER_REPO=reg.vesoft-inc.com/ci
export IMAGE_TAG=ci-e2e
make docker-multiarch
docker buildx rm ng-operator || true
- name: post clean kind clusters
uses: webiny/[email protected]
with:
run: >-
sh -c "
export PATH=$PATH:`go env GOPATH`/bin &&
kind get clusters | grep '^e2e-' | xargs -r -n1 kind delete cluster --name
"
- name: e2e
run: |
export E2E_DOCKER_CONFIG_JSON_SECRET=`cat ~/.docker/config.json| base64 -w 0`
make e2e E2EARGS="-v=5 -skip-features 'pv expansion|custom config for dynamic|tools for exporter'"
env:
E2E_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
E2E_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
E2E_BR_IMAGE: reg.vesoft-inc.com/cloud-dev/br-ent
E2E_BR_VERSION: v3.7.0
E2E_GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
E2E_OPERATOR_IMAGE: reg.vesoft-inc.com/ci/nebula-operator:ci-e2e
E2E_OPERATOR_INSTALL: "true"
E2E_NC_VERSION: v3.7.0
E2E_NC_AGENT_IMAGE: reg.vesoft-inc.com/cloud-dev/nebula-agent
E2E_NC_AGENT_VERSION: v3.6.0
E2E_NC_GRAPHD_IMAGE: reg.vesoft-inc.com/vesoft-ent/nebula-graphd-ent
E2E_NC_METAD_IMAGE: reg.vesoft-inc.com/vesoft-ent/nebula-metad-ent
E2E_NC_STORAGED_IMAGE: reg.vesoft-inc.com/vesoft-ent/nebula-storaged-ent
E2E_NC_LICENSE_MANAGER_URL: license.vesoft-inc.com:9119