Skip to content

Apply Konflux Manifests #108

Apply Konflux Manifests

Apply Konflux Manifests #108

name: Apply Konflux Manifests
on:
schedule:
- cron: "0 6 * * *" # Daily at 06:00.
workflow_dispatch: # Manual workflow trigger
push:
paths:
- ".konflux/**"
defaults:
run:
shell: bash
jobs:
konflux-apply:
name: Apply Konflux Manifests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup kubeconfig
env:
KONFLUX_TOKEN: ${{ secrets.KONFLUX_SA_TOKEN }}
run: |
kubectl config set-credentials konflux-sa --token "$KONFLUX_TOKEN"
kubectl config set-cluster konflux --server=https://api.stone-prd-rh01.pg1f.p1.openshiftapps.com:6443
kubectl config set-context konflux-sa@konflux --user=konflux-sa --namespace=ocp-serverless-tenant --cluster=konflux
kubectl config use-context konflux-sa@konflux
- name: Apply Manifests
run: make konflux-apply