-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (49 loc) · 1.67 KB
/
e2e.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
53
54
55
56
57
58
59
60
name: e2e
on:
pull_request:
permissions:
contents: read
jobs:
e2e:
name: Run acceptance tests against OpenStack ${{ matrix.name }}
strategy:
matrix:
include:
- name: "zed"
openstack_version: "stable/zed"
ubuntu_version: "20.04"
- name: "bobcat"
openstack_version: "stable/2023.2"
ubuntu_version: "22.04"
env:
image_tag: virtual-registry.k-orc.cloud/ci:commit-${GITHUB_SHA::7}
runs-on: ubuntu-${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Deploy devstack
uses: EmilienM/devstack-action@40c77372dbc135a17adc877eb77fc226a134305c
with:
enable_workaround_docker_io: 'false'
branch: ${{ matrix.openstack_version }}
- name: Deploy a Kind Cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140
with:
cluster_name: orc
- name: Build and push a container image to Kind
run: |
docker build -t ${{ env.image_tag }} .
kind load docker-image ${{ env.image_tag }} ${{ env.image_tag }} --name orc
- name: Deploy orc
run: |
kubectl config use-context kind-orc
make deploy IMG=${{ env.image_tag }}
- name: Apply simple-server
run: |
cp /etc/openstack/clouds.yaml config/samples/simple-server/
kubectl apply -k config/samples/simple-server
kubectl wait --timeout=10m --for=condition=ready OpenStackServer workstation
- name: Inspect the server
run: |
openstack server show "$(kubectl get openstackserver workstation -o jsonpath='{.status.resource.id}')"
env:
OS_CLOUD: devstack