File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Helm GitHub Actions for argocd
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - base-kustomize/argocd/**
7+ - base-helm-configs/argocd/**
8+ - .github/workflows/kustomize-argocd.yaml
9+ jobs :
10+ helm :
11+ strategy :
12+ matrix :
13+ overlays :
14+ - base
15+ name : Helm
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ - uses : azure/setup-helm@v3
21+ with :
22+ version : latest
23+ token : " ${{ secrets.GITHUB_TOKEN }}"
24+ id : helm
25+ - name : Kubectl Install
26+ working-directory : /usr/local/bin/
27+ run : |
28+ if [ ! -f /usr/local/bin/kubectl ]; then
29+ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
30+ chmod +x ./kubectl
31+ fi
32+ - name : Run Helm Template
33+ run : |
34+ ${{ steps.helm.outputs.helm-path }} template argocd oci://registry-1.docker.io/bitnamicharts/argo-cd \
35+ --namespace=argocd \
36+ --wait \
37+ --timeout 120m \
38+ -f ${{ github.workspace }}/base-helm-configs/argocd/argocd-helm-overrides.yaml \
39+ --post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \
40+ --post-renderer-args argocd/${{ matrix.overlays }} > /tmp/rendered.yaml
41+ - name : Return helm Build
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : helm-argocd-artifact-${{ matrix.overlays }}
45+ path : /tmp/rendered.yaml
You can’t perform that action at this time.
0 commit comments