-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEarthfile
More file actions
58 lines (43 loc) · 1.65 KB
/
Earthfile
File metadata and controls
58 lines (43 loc) · 1.65 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
VERSION 0.8
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.6.14 AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.6.14 AS cspell-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.6.14 AS python-ci
IMPORT github.com/input-output-hk/catalyst-ci:v3.6.14 AS cat-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/debian:v3.6.14 AS debian
# check-markdown : markdown check using catalyst-ci.
check-markdown:
DO mdlint-ci+CHECK
# markdown-check-fix : markdown check and fix using catalyst-ci.
markdown-check-fix:
LOCALLY
DO mdlint-ci+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix
# clean-spelling-list : Make sure the project dictionary is properly sorted.
clean-spelling-list:
FROM debian+debian-clean
DO cspell-ci+CLEAN
# check-spelling : Check spelling in this repo inside a container.
check-spelling:
DO cspell-ci+CHECK
# repo-docs : target to store the documentation from the root of the repo.
repo-docs:
# Create artifacts of extra files we embed inside the documentation when its built.
FROM scratch
WORKDIR /repo
COPY --dir *.md LICENSE-APACHE LICENSE-MIT .
SAVE ARTIFACT /repo repo
# We lint python globally in repos, so that all scripts and programs
# are linted equally.
# Its also fast.
check-python:
FROM python-ci+python-base
DO python-ci+LINT_PYTHON
# Sync standard configs.
sync-config:
FROM scratch
COPY --dir cat-ci+repo-config/repo .
SAVE ARTIFACT /repo/ruff.toml AS LOCAL ruff.toml
# copy-specs : Copy the specs source folder.
copy-specs:
FROM scratch
COPY --dir specs ./specs
SAVE ARTIFACT /specs specs