fix: use semver constraint instead of 'latest' for ArgoCD OCI helm targetRevision
Some checks failed
Build & Release / build (push) Has been cancelled
Some checks failed
Build & Release / build (push) Has been cancelled
This commit is contained in:
@@ -51,6 +51,7 @@ export function removeCustomerChart(slug: string) {
|
||||
}
|
||||
|
||||
function buildArgoCDApp(slug: string, appVersion: string): string {
|
||||
const revision = appVersion === "*" || appVersion === "latest" ? ">=0.0.1" : appVersion;
|
||||
return `apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
@@ -61,7 +62,7 @@ spec:
|
||||
source:
|
||||
repoURL: registry.digitalocean.com/lunarfront
|
||||
chart: lunarfront
|
||||
targetRevision: "${appVersion}"
|
||||
targetRevision: "${revision}"
|
||||
helm:
|
||||
parameters:
|
||||
- name: ingress.host
|
||||
|
||||
Reference in New Issue
Block a user