-
Notifications
You must be signed in to change notification settings - Fork 14
68 lines (60 loc) · 1.71 KB
/
ci.yml
File metadata and controls
68 lines (60 loc) · 1.71 KB
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
name: Pulp CI
on:
push:
branches:
- main
tags:
- '*'
workflow_dispatch:
pull_request:
branches:
- main
schedule:
# * is a special character in YAML so you have to quote this string
# runs at 3:00 UTC daily
- cron: '00 3 * * *'
env:
COLORTERM: 'yes'
TERM: 'xterm-256color'
jobs:
helm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pre-reqs
with:
ingress-type: nodeport
- uses: actions/checkout@v4
- name: Install Pulp Operator
run: |
kubectl create ns pulp-operator-system
kubectl config set-context --current --namespace=pulp-operator-system
helm install --set namespace=pulp-operator-system pulp-operator helm-charts/chart
- uses: actions/checkout@v4
with:
repository: pulp/pulp-operator
ref: main
- name: Create Pulp Operator CR
run: |
kubectl apply -f .ci/assets/kubernetes/pulp-admin-password.secret.yaml
kubectl apply -f config/samples/simple.yaml
- name: Check and wait pulp-operator deploy
run: |
journalctl --unit=pulp-operator -f &
kubectl logs -f -l app.kubernetes.io/component=operator -c manager &
kubectl wait --for condition=Pulp-Operator-Finished-Execution pulp/example-pulp --timeout=900s
shell: bash
- name: Test all components
run: |
.ci/scripts/pulp_tests.sh -m
shell: bash
env:
PY_COLORS: '1'
- name: Logs
if: always()
run: |
.github/workflows/scripts/show_logs.sh
helm list
shell: bash