2024-07-02 22:45:30 -05:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
name: Fetch upstream
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-07-02 22:46:31 -05:00
|
|
|
- main
|
2024-07-02 22:45:30 -05:00
|
|
|
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
|