Skip to content

Helm build (ecosystem1) #129

Helm build (ecosystem1)

Helm build (ecosystem1) #129

Workflow file for this run

#
# Copyright contributors to the Galasa project
#
# SPDX-License-Identifier: EPL-2.0
#
name: Helm build (ecosystem1)
on:
workflow_dispatch:
env:
NAMESPACE: galasa-dev
jobs:
build-helm:
name: Build Helm chart for ecosystem1
runs-on: ubuntu-latest
steps:
- name: Checkout Automation repository
uses: actions/checkout@v4
- name: Checkout Helm repository
uses: actions/checkout@v4
with:
repository: ${{ env.NAMESPACE }}/helm
path: helm
- name: Setup helm
uses: azure/[email protected]
with:
version: '3.13.2' # default is latest (stable)
id: install
- name: Setup kubeconfig secret
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG_PLAN_B_CLUSTER }}" >> $HOME/.kube/config
- name: Uninstall ecosystem1
run: |
helm uninstall main-ecosystem --ignore-not-found --namespace=galasa-ecosystem1 --kubeconfig $HOME/.kube/config
- name: Install ecosystem1
run: |
helm install main-ecosystem ${{ github.workspace }}/helm/charts/ecosystem --namespace=galasa-ecosystem1 --values ${{ github.workspace }}/infrastructure/galasa-plan-b-lon02/galasa-ecosystem1/helm-values.yaml --kubeconfig $HOME/.kube/config --wait
- name: Test ecosystem1
run: |
helm test main-ecosystem --namespace=galasa-ecosystem1 --kubeconfig $HOME/.kube/config
report-failure:
name: Report failure in workflow
runs-on: ubuntu-latest
needs: build-helm
if: failure()
steps:
- name: Report failure in workflow to Slack
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run : |
docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/galasabld-ibm:main slackpost workflows --repo "automation" --workflowName "${{ github.workflow }}" --workflowRunNum "${{ github.run_id }}" --ref "${{ env.BRANCH }}" --hook "${{ env.SLACK_WEBHOOK }}"