mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix(helmfile): remove templates before running updating artifacts (#30139)
This commit is contained in:
parent
61e0c39f70
commit
8e4698049d
2 changed files with 8 additions and 5 deletions
|
@ -40,6 +40,9 @@ releases:
|
||||||
- name: backstage
|
- name: backstage
|
||||||
chart: backstage/backstage
|
chart: backstage/backstage
|
||||||
version: 0.12.0
|
version: 0.12.0
|
||||||
|
{{- if eq .Environment.Name "test" }}
|
||||||
|
installed: false
|
||||||
|
{{- end }}
|
||||||
- name: oauth-proxy
|
- name: oauth-proxy
|
||||||
chart: oauth2-proxy/oauth2-proxy
|
chart: oauth2-proxy/oauth2-proxy
|
||||||
version: 6.8.0
|
version: 6.8.0
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
import { getFile } from '../../../util/git';
|
import { getFile } from '../../../util/git';
|
||||||
import { regEx } from '../../../util/regex';
|
import { regEx } from '../../../util/regex';
|
||||||
import { Result } from '../../../util/result';
|
import { Result } from '../../../util/result';
|
||||||
import { Yaml } from '../../../util/schema-utils';
|
import { parseSingleYaml } from '../../../util/yaml';
|
||||||
import { generateHelmEnvs } from '../helmv3/common';
|
import { generateHelmEnvs } from '../helmv3/common';
|
||||||
import type { UpdateArtifact, UpdateArtifactsResult } from '../types';
|
import type { UpdateArtifact, UpdateArtifactsResult } from '../types';
|
||||||
import { Doc, LockVersion } from './schema';
|
import { Doc, LockVersion } from './schema';
|
||||||
|
@ -70,10 +70,10 @@ export async function updateArtifacts({
|
||||||
}
|
}
|
||||||
|
|
||||||
const cmd: string[] = [];
|
const cmd: string[] = [];
|
||||||
const doc = Result.parse(
|
const doc = parseSingleYaml(newPackageFileContent, {
|
||||||
newPackageFileContent,
|
removeTemplates: true,
|
||||||
Yaml.pipe(Doc),
|
customSchema: Doc,
|
||||||
).unwrapOrThrow();
|
});
|
||||||
|
|
||||||
for (const value of coerceArray(doc.repositories).filter(isOCIRegistry)) {
|
for (const value of coerceArray(doc.repositories).filter(isOCIRegistry)) {
|
||||||
const loginCmd = await generateRegistryLoginCmd(
|
const loginCmd = await generateRegistryLoginCmd(
|
||||||
|
|
Loading…
Reference in a new issue