-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (45 loc) · 1.58 KB
/
test-deployment.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
---
name: test-deployment
on: pull_request
permissions:
contents: write
packages: write
jobs:
docker-build:
permissions:
contents: write
packages: write
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
with:
name: runner-manager
namespace: ${{ github.repository_owner }}
test-deployment:
needs: docker-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: helm/kind-action@v1
- name: Edit the runner-manager image
working-directory: manifests
run: kustomize edit set image ghcr.io/${{ github.repository_owner }}/runner-manager:${{ github.sha }}
- name: Deploy runner-manager
run: kubectl apply -k manifests
- name: Check if deployment is ready
run: |
kubectl rollout status statefulset runner-manager-redis --timeout=90s
kubectl rollout status deployment runner-manager-api --timeout=120s
kubectl rollout status deployment runner-manager-worker --timeout=120s
kubectl rollout status deployment runner-manager-scheduler --timeout=120s
- name: get all resources
if: failure()
run: kubectl get all
- name: describe all resources
if: failure()
run: kubectl describe all
- name: get logs
if: failure()
run: |
kubectl logs -l app.kubernetes.io/name=runner-manager
kubectl logs -l app.kubernetes.io/component=worker
kubectl logs -l app.kubernetes.io/component=scheduler
kubectl logs -l app.kubernetes.io/component=redis