Apply Konflux Manifests #115
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: 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 |