Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sources:

build-final-spec:
FROM core+base-image
RUN apk update && apk add yarn nodejs npm jq
RUN apk update && apk add yarn nodejs npm jq yq
WORKDIR /src/releases
COPY releases/package.* .
RUN npm install
Expand All @@ -42,6 +42,9 @@ build-final-spec:
COPY (reconciliation+openapi/openapi.yaml) /src/ee/reconciliation/
COPY (orchestration+openapi/openapi.yaml) /src/ee/orchestration/

# Strip component-level servers blocks so only base.yaml servers survive the merge
RUN find /src/components /src/ee -name 'openapi.yaml' -exec yq -i 'del(.servers)' {} \;

RUN npm run build
RUN jq -s '.[0] * .[1]' build/generate.json openapi-overlay.json > build/latest.json
ARG version=v0.0.0
Expand Down
Loading