Repository navigation
62 lines (51 loc) · 1.5 KB
/
Copy pathdev.yml
File metadata and controls
62 lines (51 loc) · 1.5 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
name: Deploy helm chart to dev
on:
workflow_dispatch:
push:
branches:
- dev
paths:
- "charts/**"
jobs:
plumber:
uses: ./.github/workflows/plumber.yml
permissions:
contents: read
security-events: write
id-token: write
validate:
runs-on: ubuntu-latest
name: Validate Chart Before Deploy
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
- name: Install yq
run: |
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
- name: Run Chart Validation
run: ./scripts/validate-chart.sh
deploy:
runs-on: ubuntu-latest
needs: [plumber, validate]
if: success()
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
id: install
- name: Package chart and push it
env:
REPO_BEARER_TOKEN: ${{ secrets.REPO_BEARER_TOKEN }}
run: ./scripts/publish-chart.sh dev