mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-07-13 16:04:13 +00:00
wrench: Automatically create a PR to publish latest schema release on the website (#899)
* Add earthly target to generate cloud config schema Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Add schema workflow Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> --------- Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
parent
3e9dbe1fb2
commit
e2dba6b84e
10
Earthfile
10
Earthfile
@ -705,3 +705,13 @@ temp-image:
|
|||||||
FROM +docker
|
FROM +docker
|
||||||
SAVE IMAGE --push $TTL_IMAGE
|
SAVE IMAGE --push $TTL_IMAGE
|
||||||
|
|
||||||
|
generate-schema:
|
||||||
|
FROM alpine
|
||||||
|
COPY . ./
|
||||||
|
COPY +version/VERSION ./
|
||||||
|
COPY +build-kairos-agent/kairos-agent /usr/bin/kairos-agent
|
||||||
|
ARG RELEASE_VERSION=$(cat VERSION)
|
||||||
|
RUN mkdir "docs/static/$RELEASE_VERSION"
|
||||||
|
ARG SCHEMA_FILE="docs/static/$RELEASE_VERSION/cloud-config.json"
|
||||||
|
RUN kairos-agent print-schema > $SCHEMA_FILE
|
||||||
|
SAVE ARTIFACT ./docs/static/* AS LOCAL docs/static/
|
||||||
|
Loading…
Reference in New Issue
Block a user