Skip to content
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
22 changes: 5 additions & 17 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,32 +167,20 @@ swagger:
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/swagger:${OPENAPI_VERSION}
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/swagger:latest

explorer-build:
FROM node:22.18.0-alpine
DO github.com/genestack/earthly-libs+NPM_PREPARE

CACHE /root/.npm

COPY openapi/explorer/package.json openapi/explorer/package-lock.json .
RUN npm install

SAVE ARTIFACT node_modules/openapi-explorer/dist/browser/openapi-explorer.min.js

explorer:
stoplight:
FROM nginxinc/nginx-unprivileged:1.29.0-alpine

COPY +build/v1/schemas /usr/share/nginx/html/schemas/
COPY +build/v1/odmApi.yaml /usr/share/nginx/html/
COPY --pass-args +explorer-build/openapi-explorer.min.js /usr/share/nginx/html/
COPY openapi/explorer/fs /
COPY openapi/stoplight/fs /

ARG --required OPENAPI_VERSION
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/explorer:${OPENAPI_VERSION}
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/explorer:latest
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/stoplight:${OPENAPI_VERSION}
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/stoplight:latest

main:
BUILD +swagger
BUILD +explorer
BUILD +stoplight
BUILD +docs
BUILD +r-api-client
BUILD +python-api-client
23 changes: 0 additions & 23 deletions openapi/explorer/fs/usr/share/nginx/html/index.html

This file was deleted.

Loading
Loading