|
2 | 2 | name: Silta chart tests
|
3 | 3 |
|
4 | 4 | on:
|
5 |
| - # Run for pull requests, but there's an additional draft filter later on |
6 |
| - pull_request: |
7 |
| - types: [opened, synchronize, reopened, ready_for_review] |
| 5 | + # # Run for pull requests, but there's an additional draft filter later on |
| 6 | + # pull_request: |
| 7 | + # types: [opened, synchronize, reopened, ready_for_review] |
8 | 8 |
|
9 | 9 | # Allows you to run this workflow manually from the Actions tab
|
10 | 10 | workflow_dispatch:
|
@@ -168,9 +168,32 @@ jobs:
|
168 | 168 | curl --resolve ${CLUSTER_DOMAIN}:443:${MINIKUBE_IP} https://${CLUSTER_DOMAIN} -ILk --fail
|
169 | 169 | curl --resolve ${CLUSTER_DOMAIN}:80:${MINIKUBE_IP} --resolve ${CLUSTER_DOMAIN}:443:${MINIKUBE_IP} http://${CLUSTER_DOMAIN} -IL --fail
|
170 | 170 |
|
| 171 | + - name: Install mysql operator |
| 172 | + run: | |
| 173 | + # Install CRD for mysql-operator (forked version) |
| 174 | + kubectl apply -f https://raw.githubusercontent.com/wunderio/mysql-operator/fork/deploy/deploy-crds.yaml |
| 175 | + |
| 176 | + # Install mysql-operator (forked version) |
| 177 | + helm upgrade --install mysql-operator mysql-operator/mysql-operator \ |
| 178 | + --namespace mysql-operator --create-namespace \ |
| 179 | + --set image.registry="wunderio" \ |
| 180 | + --set image.repository="" \ |
| 181 | + --set image.name="mysql-community-operator" \ |
| 182 | + --set image.tag="8.3.0-2.1.2-mod" \ |
| 183 | + --wait |
| 184 | +
|
171 | 185 | - name: Build Drupal chart images, deploy and test
|
172 | 186 | run: |
|
173 | 187 |
|
| 188 | + function info { |
| 189 | + echo "Error occurred, printing debug info" |
| 190 | + kubectl get pods -A |
| 191 | + kubectl get events -A |
| 192 | + kubectl get innodbcluster -A |
| 193 | + } |
| 194 | +
|
| 195 | + trap "info" ERR |
| 196 | +
|
174 | 197 | MINIKUBE_IP=$(minikube ip)
|
175 | 198 | CLUSTER_DOCKER_REGISTRY=registry.${CLUSTER_DOMAIN}:80
|
176 | 199 |
|
|
0 commit comments