Skip to content

v0.12.2

v0.12.2 #20

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@ea8b747819ff6d82907eb4018229f1a75c174697
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
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()
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385
with:
workflow: OLM bundle and PR
token: ${{ secrets.CR_TOKEN }}
inputs: '{ "bundleVersion": "master" }' # during the release 'master' is what we want here
- name: Invoke workflow for OLM
if: always()
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385
with:
workflow: OLM bundle and PR (community-operators-prod)
token: ${{ secrets.CR_TOKEN }}
inputs: |
{
"bundleVersion": "master",
"downstreamRepo": "k8gb-io/community-operators-prod",
"upstreamRepo": "redhat-openshift-ecosystem/community-operators-prod"
}