Skip to content

v0.14.0

v0.14.0 #22

Workflow file for this run

name: Helm Publish
on:
release:
types:
- published
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@951b48540b429070694bc8abd82fd6901eb123ca
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc
with:
fetch-depth: 0
- uses: dave-mcconnell/helm-gh-pages-microservices@8478af5f0fd712cc0fb59f2c99e0688f3f591287
with:
access-token: ${{ secrets.CR_TOKEN }}
source-charts-folder: 'chart'
destination-repo: k8gb-io/k8gb
destination-branch: gh-pages
- name: Create k3s cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79
with:
cluster-name: "test-gslb1"
args: -c k3d/test-gslb1.yaml
- name: Smoke test helm installation
run: |
helm repo add k8gb https://k8gb.io/
for i in $(seq 16)
do
helm repo update
helm -n k8gb upgrade -i k8gb k8gb/k8gb --wait --create-namespace --version=$(make version) && exit 0
_sec=$(echo "1.5^$i" | bc)
echo "Waiting ${_sec} seconds.."
sleep ${_sec}
done
- name: Invoke workflow for OLM (community-operators)
if: always()
continue-on-error: true
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with:
workflow: olm_pr.yaml
token: ${{ secrets.CR_TOKEN }}
inputs: '{ "bundleVersion": "master" }' # during the release 'master' is what we want here
- name: Invoke workflow for OLM (community-operators-prod)
if: always()
continue-on-error: true
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with:
workflow: olm_pr.yaml
token: ${{ secrets.CR_TOKEN }}
inputs: |
{
"bundleVersion": "master",
"downstreamRepo": "k8gb-io/community-operators-prod",
"upstreamRepo": "redhat-openshift-ecosystem/community-operators-prod"
}