Skip to content

Add helm template actions #1

Add helm template actions

Add helm template actions #1

Workflow file for this run

name: Helm GitHub Actions for cinder
on:
pull_request:
paths:
- helm-configs/cinder/**
- .github/workflows/helm-cinder.yaml
jobs:
helm:
strategy:
matrix:
overlays:
- base
- aio
name: Helm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- name: Kubectl Install
working-directory: /usr/local/bin/
run: |
if [ ! -f /usr/local/bin/kubectl ]; then
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
fi
- name: Pull OSH submodule
run: |
git submodule update --init submodules/openstack-helm
- name: Make OSH submodule
run: |
cd submodules/openstack-helm
make cinder
- name: Run Helm Template
run: |
cd submodules/openstack-helm
${{ steps.helm.outputs.helm-path }} template cinder ./cinder \
--namespace=openstack \
--wait \
--timeout 120m \
-f /opt/genestack/helm-configs/cinder/cinder-helm-overrides.yaml \
--post-renderer /opt/genestack/kustomize/kustomize.sh \
--post-renderer-args cinder/${{ matrix.overlays }} > /tmp/rendered.yaml
- name: Return helm Build
uses: actions/upload-artifact@v2
with:
name: helm-cinder-artifact-${{ matrix.overlays }}
path: /tmp/rendered.yaml