-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (63 loc) · 1.93 KB
/
charts.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
name: Charts
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.12.0
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Set up chart-testing
uses: helm/chart-testing-action@v2
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.12.0
- name: Set up chart-testing
uses: helm/chart-testing-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build API Docker Image
uses: docker/build-push-action@v5
with:
context: ./api/
target: prod
load: true
tags: ghcr.io/${{ github.repository_owner }}/outdated/api:latest
- name: Build Ember Docker Image
uses: docker/build-push-action@v5
with:
context: ./ember/
load: true
tags: ghcr.io/${{ github.repository_owner }}/outdated/ember:latest
- name: Create kind cluster
uses: helm/kind-action@v1
- name: Load dev images into k8s
run: kind load docker-image ghcr.io/${{ github.repository_owner }}/outdated/api ghcr.io/${{ github.repository_owner }}/outdated/ember --name chart-testing
- name: Run chart-testing (install)
run: ct --config=ct.yaml install