-
Notifications
You must be signed in to change notification settings - Fork 22
52 lines (50 loc) · 1.71 KB
/
integration_test_aks.yaml
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
#---
#name: Integration Test on AKS
#on:
# Triggers the workflow on push or pull request events but only for the main branch
#push:
#branches: [main]
#pull_request:
#branches: [main]
#types: [labeled]
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
#jobs:
#Run-Integration-Test-on-AKS:
#if: contains(github.event.pull_request.labels.*.name, 'safe to test')
#name: Run Integration Test on AKS
#runs-on: ubuntu-latest
#steps:
#- name: Check out code
#uses: actions/checkout@v4
#with:
#ref: ${{ github.event.pull_request.head.sha }}
#- name: Set up Go 1.x
#uses: actions/setup-go@v5
#with:
#go-version-file: 'go.mod'
#id: go
#- name: Build Code
#run: |
#make azurelustre
#cp ./_output/azurelustreplugin ./test/integration_aks/image/
#- name: Docker login
#uses: docker/login-action@v1
#with:
#registry: ${{ secrets.TEST_ACR_URI }}
#username: ${{ secrets.TEST_ACR_USERNAME }}
#password: ${{ secrets.TEST_ACR_PASSWORD }}
#- name: Build and push integration test container
#uses: docker/build-push-action@v2
#with:
#context: ./test/integration_aks/image
#push: true
#tags: ${{ secrets.TEST_ACR_URI }}/azurelustre-csi-integration-test:latest
#- name: Run integration test
#run: |
#./hack/verify-integration-test-aks.sh
#env:
#kube_config: ${{ secrets.KUBE_CONFIG }}
#test_acr_uri: ${{ secrets.TEST_ACR_URI }}
#lustre_fs_name: ${{ secrets.LUSTRE_FS_NAME }}
#lustre_fs_ip: ${{ secrets.LUSTRE_FS_IP }}