mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
VERSION 0.8
|
|
|
|
IMPORT github.com/formancehq/earthly:tags/v0.12.0 AS core
|
|
IMPORT ../.. AS stack
|
|
IMPORT ../../components/operator AS operator
|
|
IMPORT ../../ee/agent AS agent
|
|
|
|
sources:
|
|
FROM core+base-image
|
|
WORKDIR /src
|
|
COPY Chart.lock /src/Chart.lock
|
|
COPY Chart.yaml /src/Chart.yaml
|
|
COPY README.md /src/README.md
|
|
COPY values.yaml /src/values.yaml
|
|
COPY --dir templates /src/templates
|
|
SAVE ARTIFACT /src
|
|
|
|
helm-validate:
|
|
FROM core+helm-base
|
|
WORKDIR /src
|
|
|
|
COPY (agent+helm-validate/*) /src/ee/agent/helm
|
|
COPY (operator+helm-validate/* ) /src/components/operator/helm
|
|
COPY (+sources/src) /src/helm/regions
|
|
|
|
WORKDIR /src/helm/regions
|
|
RUN helm dependencies update
|
|
RUN helm dependencies build
|
|
DO --pass-args core+HELM_VALIDATE
|
|
|
|
SAVE ARTIFACT /src/helm/regions/Chart.lock AS LOCAL Chart.lock
|
|
|
|
helm-package:
|
|
FROM --pass-args +helm-validate
|
|
RUN helm package .
|
|
SAVE ARTIFACT *.tgz AS LOCAL out/
|
|
|
|
helm-publish:
|
|
FROM --pass-args +helm-package
|
|
WORKDIR /src/helm/regions
|
|
DO --pass-args stack+HELM_PUBLISH --path=/src/helm/regions/*.tgz |