v0.13.0 #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
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@25b02cc069be46d637e8fe2f1e8484008e9e9609 | |
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@25b02cc069be46d637e8fe2f1e8484008e9e9609 | |
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" | |
} |