mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-29 16:31:20 -05:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
@@ -523,6 +523,7 @@ def main(ctx):
|
||||
testPipelines(ctx)
|
||||
|
||||
build_release_pipelines = \
|
||||
checkVersionPlaceholder() + \
|
||||
dockerReleases(ctx) + \
|
||||
binaryReleases(ctx)
|
||||
|
||||
@@ -1817,6 +1818,27 @@ def dockerReleases(ctx):
|
||||
|
||||
return pipelines
|
||||
|
||||
def checkVersionPlaceholder():
|
||||
return [{
|
||||
"name": "check-version-placeholder",
|
||||
"steps": [
|
||||
{
|
||||
"name": "check-version-placeholder",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"grep -r -e '%%NEXT%%' -e '%%NEXT_PRODUCTION_VERSION%%' %s/services %s/pkg > next_version.txt" % (
|
||||
dirs["base"],
|
||||
dirs["base"],
|
||||
),
|
||||
'if [ -s next_version.txt ]; then echo "replace version placeholders"; cat next_version.txt; exit 1; fi',
|
||||
],
|
||||
},
|
||||
],
|
||||
"when": [
|
||||
event["tag"],
|
||||
],
|
||||
}]
|
||||
|
||||
def dockerRelease(ctx, repo, build_type):
|
||||
build_args = {
|
||||
"REVISION": "%s" % ctx.build.commit,
|
||||
|
||||
Reference in New Issue
Block a user