Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(all): Add scopes in OpenAPI files #1700

Merged
merged 6 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
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
25 changes: 6 additions & 19 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,9 @@ build-final-spec:
SAVE ARTIFACT build/latest.json

openapi:
FROM core+base-image
COPY . /src
flemzord marked this conversation as resolved.
Show resolved Hide resolved
WORKDIR /src
FOR component IN $(cd ./components && ls -d */)
COPY (./components/$component+openapi/src/components/$component) /src/components/$component
END
FOR component IN $(cd ./ee && ls -d */)
COPY (./ee/$component+openapi/src/ee/$component) /src/ee/$component
END
SAVE ARTIFACT /src
LOCALLY
BUILD ./components+run --TARGET=openapi
BUILD ./ee+run --TARGET=openapi

goreleaser:
FROM core+builder-image
Expand Down Expand Up @@ -101,12 +94,8 @@ all-ci-goreleaser:

build-all:
LOCALLY
FOR component IN $(cd ./components && ls -d */)
BUILD --pass-args ./components/${component}+build-image
END
FOR component IN $(cd ./ee && ls -d */)
BUILD --pass-args ./ee/${component}+build-image
END
BUILD ./components+run --TARGET=build-image
BUILD ./ee+run --TARGET=build-image

deploy-all:
LOCALLY
Expand All @@ -118,9 +107,7 @@ deploy-all:
BUILD --pass-args ./components/+deploy --components=$component
END
END
FOR component IN $(cd ./ee && ls -d */)
BUILD --pass-args ./ee/+deploy --components=$component
END
BUILD ./ee+run --TARGET=build-image
flemzord marked this conversation as resolved.
Show resolved Hide resolved

deployer-module:
FROM --pass-args core+base-image
Expand Down
Loading