diff --git a/Earthfile b/Earthfile index 2485f7c9f0..4ddcf8b0c1 100644 --- a/Earthfile +++ b/Earthfile @@ -206,12 +206,13 @@ helm-publish: BUILD --pass-args ./components/operator+helm-publish HELM_PUBLISH: + ARG --required path FUNCTION WITH DOCKER RUN --secret GITHUB_TOKEN echo $GITHUB_TOKEN | docker login ghcr.io -u NumaryBot --password-stdin END WITH DOCKER - RUN helm push *.tgz oci://ghcr.io/formancehq/helm + RUN helm push ${path} oci://ghcr.io/formancehq/helm END INCLUDE_GO_LIBS: diff --git a/components/operator/Earthfile b/components/operator/Earthfile index b798b9d523..c4fca94ee9 100644 --- a/components/operator/Earthfile +++ b/components/operator/Earthfile @@ -207,7 +207,7 @@ helm-publish: COPY --pass-args (+helm-update/helm) . FOR dir IN $(ls -d */) WORKDIR /src/$dir - DO --pass-args stack+HELM_PUBLISH + DO --pass-args stack+HELM_PUBLISH --path=/src/${dir}*.tgz END release: diff --git a/helm/regions/Earthfile b/helm/regions/Earthfile index 5ee2ec2ced..9f03fcc3c6 100644 --- a/helm/regions/Earthfile +++ b/helm/regions/Earthfile @@ -39,4 +39,4 @@ helm-publish: FROM core+helm-base WORKDIR /src COPY (+helm-package/) /src - DO --pass-args stack+HELM_PUBLISH \ No newline at end of file + DO --pass-args stack+HELM_PUBLISH --path=/src/*.tgz \ No newline at end of file