-
Notifications
You must be signed in to change notification settings - Fork 30
69 lines (65 loc) · 2.19 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: e2e
on:
schedule:
- cron: "0 16 * * *"
workflow_dispatch:
inputs:
ref:
description: "Acceptable content: branch/tag/commit ID."
required: true
default: 'ci-dev'
defaults:
run:
shell: bash
jobs:
package:
name: e2e
runs-on:
- self-hosted
- nebula
container:
image: reg.vesoft-inc.com/proxy/cruizba/ubuntu-dind # docker:dind
volumes:
- /var/lib/dind:/var/lib/docker
options: --privileged
# container:
# image: reg.vesoft-inc.com/ci/ubuntu:20.04-docker
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
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: |
apt install -y git make
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
- name: e2e
run: |
export KIND_EXPERIMENTAL_DOCKER_NETWORK=${{ job.container.network }}
export E2E_DOCKER_CONFIG_JSON_SECRET=`cat ~/.docker/config.json| base64 -w 0`
make e2e E2EARGS="-labels category=tools -v=5"
env:
E2E_OPERATOR_IMAGE: reg.vesoft-inc.com/cloud-dev/nebula-operator:snap-1.25
E2E_OPERATOR_INSTALL: "true"
E2E_NC_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