- Make sure tkn-pac is compiled from main
- Make sure we are on the right cluster ($ opac)
- Create a demo directory in /tmp (
mkdir /tmp/demo
)
gh repo create openshfit-demo-test
#!/usr/bin/env bash | |
# need python-semver package https://pypi.org/project/semver/ | |
set -euf | |
VERSION=${1-""} | |
bumpversion() { | |
current=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
echo "Current version is ${current}" |
This uses a GitHub Enteprise instance but the same apply to a Public GitHub you just need to use https://github.com/
https://ghe.pipelines.devcluster.openshift.com/github-apps/pipelines-as-code
apiVersion: v1 | |
kind: List | |
items: | |
- apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: pr-cleanup | |
namespace: ghe | |
spec: | |
concurrencyPolicy: Replace |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
networking: | |
apiServerAddress: "10.0.111.66" | |
apiServerPort: 8443 | |
kubeadmConfigPatchesJSON6902: | |
- group: kubeadm.k8s.io | |
version: v1beta2 | |
kind: ClusterConfiguration | |
patch: | |
(defun gnus-demon-scan-mail-or-news-and-update (level) | |
"Scan for new mail, updating the *Group* buffer." | |
(let ((win (current-window-configuration))) | |
(unwind-protect | |
(save-window-excursion | |
(save-excursion | |
(when (gnus-alive-p) | |
(save-excursion | |
(set-buffer gnus-group-buffer) | |
(gnus-group-get-new-news level))))) |
# -*- coding: utf-8 -*- | |
# Author: Chmouel Boudjnah <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: tkn-cleanup | |
spec: | |
failedJobsHistoryLimit: 1 | |
successfulJobsHistoryLimit: 1 | |
concurrencyPolicy: Replace | |
schedule: "0 0 * * *" |