Initial commit.
This commit is contained in:
commit
59f0bd225a
5 changed files with 82 additions and 0 deletions
44
.forgejo/workflows/fetch-upstream.yaml
Normal file
44
.forgejo/workflows/fetch-upstream.yaml
Normal file
|
@ -0,0 +1,44 @@
|
|||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
name: Fetch upstream
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .github/workflows/fetch-upstream.yaml
|
||||
|
||||
env:
|
||||
# renovate: datasource=github-releases depName=kubevirt/kubevirt
|
||||
KUBEVIRT_VERSION: v1.2.2
|
||||
|
||||
jobs:
|
||||
fetch-upstream:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Git setup
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global user.name 'Smeagol'
|
||||
git config --global user.email 'smeagol@hsn.dev'
|
||||
|
||||
- name: Fetch files
|
||||
shell: bash
|
||||
run: |
|
||||
git checkout -b ${KUBEVIRT_VERSION} main || git checkout ${KUBEVIRT_VERSION}
|
||||
mkdir ./deploy
|
||||
|
||||
mv ./kustomization.tmpl.yaml ./deploy/kustomization.yaml
|
||||
curl -vL -o ./deploy/1-kubevirt-operator.yaml https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml
|
||||
curl -vL -o ./deploy/2-kubevirt-cr.yaml https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml
|
||||
|
||||
git add ./deploy || true
|
||||
git commit -m "feat: ${KUBEVIRT_VERSION}" || true
|
||||
|
||||
git push origin ${KUBEVIRT_VERSION} || true
|
2
README.md
Normal file
2
README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# kubevirt-flux
|
||||
Fetch KubeVirt's upstream release files and host in this repo to use with Flux GitRepository Source
|
8
kustomization-cdi.tmpl.yaml
Normal file
8
kustomization-cdi.tmpl.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- 1-cdi-operator.yaml
|
||||
- 2-cdi-cr.yaml
|
||||
|
8
kustomization.tmpl.yaml
Normal file
8
kustomization.tmpl.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- 1-kubevirt-operator.yaml
|
||||
- 2-kubevirt-cr.yaml
|
||||
|
20
renovate.json5
Normal file
20
renovate.json5
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:best-practices"],
|
||||
"semanticCommits": "enabled",
|
||||
"assignees": ["jahanson"],
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": [
|
||||
"Process custom dependencies"
|
||||
],
|
||||
"fileMatch": [
|
||||
"(^|/).forgejo/.+\\.ya?ml$"
|
||||
],
|
||||
"matchStrings": [
|
||||
"(?m:# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n.+?: \"?(?<currentValue>\\S+?)\"?$)"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue