-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEarthfile
More file actions
42 lines (33 loc) · 1.09 KB
/
Earthfile
File metadata and controls
42 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
VERSION 0.8
ARG --global --required HARBOR_DOCKER_REGISTRY
ARG --global --required RAW_REGISTRY_SNAPSHOTS
build:
FROM python:3.14.3-alpine
DO github.com/genestack/earthly-libs:6e90f15c1b437e0bfdf6f95786cac47fb5c0c7e9+PYTHON_PREPARE
COPY requirements.txt .
RUN \
--secret NEXUS_USER \
--secret NEXUS_PASSWORD \
pypi-login.sh && \
python3 -m pip install --no-cache-dir -r requirements.txt && \
apk add curl && \
pypi-clean.sh
ARG --required SDK_VERSION
ARG --required OPENAPI_VERSION
COPY collect-deps.sh .
RUN \
--secret NEXUS_USER \
--secret NEXUS_PASSWORD \
./collect-deps.sh
COPY --dir docs mkdocs.yml .
RUN mkdocs build
SAVE ARTIFACT site
image:
FROM nginxinc/nginx-unprivileged:1.29.5-alpine
COPY fs /
COPY --pass-args +build/site/ /usr/share/nginx/html/
ARG --required USER_DOCS_VERSION
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/user-docs:${USER_DOCS_VERSION}
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/user-docs:latest
main:
BUILD +image