-
Notifications
You must be signed in to change notification settings - Fork 2
/
Earthfile
31 lines (26 loc) · 635 Bytes
/
Earthfile
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
VERSION 0.8
FROM ubuntu:jammy
ci:
ARG EARTHLY_CI
ARG EARTHLY_GIT_SHORT_HASH
ARG git_sha=$EARTHLY_GIT_SHORT_HASH
ARG --required version
BUILD +check
BUILD +build
BUILD ./packages/backend+image --version=$version --git_sha=$git_sha
IF [ $EARTHLY_CI = "true" ]
BUILD ./packages/frontend+deploy --stage=prod --git_sha=$git_sha
ELSE
BUILD ./packages/frontend+deploy --stage=dev --git_sha=$git_sha
END
build:
BUILD ./packages/frontend+build
check:
BUILD ./packages/backend+check
BUILD ./packages/data+check
deno:
FROM denoland/deno
WORKDIR /workspace
prepare:
FROM +deps
COPY packages packages