Verified Commit dca6f7e0 authored by Sheogorath's avatar Sheogorath 🏰
Browse files

Build Kubernetes 1.21.10

parent 2c503da2
Pipeline #12518 passed with stages
in 24 minutes and 28 seconds
stages:
- build
- publish
variables:
BUILD_BRANCH: "fedora35/kubernetes-1.21"
build-srpm:
stage: build
image: registry.fedoraproject.org/fedora:35
......@@ -15,7 +19,7 @@ build-srpm:
paths:
- ./*.rpm
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH == $BUILD_BRANCH'
build-rpm:
stage: build
......@@ -33,7 +37,7 @@ build-rpm:
- ./*.rpm
expire_in: 1 week
rules:
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
- if: '$CI_COMMIT_BRANCH != $BUILD_BRANCH && $CI_PIPELINE_SOURCE == "push"'
publish-copr:
stage: publish
......@@ -43,6 +47,6 @@ publish-copr:
- cat "$COPR_API_CONFIG" > ~/.config/copr
- dnf install -y copr-cli
script:
- copr-cli build Kubernetes ./*.src.rpm
- copr-cli build $(basename $BUILD_BRANCH) ./*.src.rpm
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH == $BUILD_BRANCH'
......@@ -15,7 +15,7 @@
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path k8s.io/kubernetes
%global commit 5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e
%global commit a7a32748b5c60445c4c7ee904caf01b91f2dbb71
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Needed otherwise "version_ldflags=$(kube::version_ldflags)" doesn't work
......@@ -24,7 +24,7 @@
##############################################
Name: kubernetes
Version: 1.22.5
Version: 1.21.10
Release: 2%{?dist}
Summary: Container cluster management
License: ASL 2.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment