-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathEarthfile
More file actions
21 lines (18 loc) · 820 Bytes
/
Earthfile
File metadata and controls
21 lines (18 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
VERSION --wildcard-builds 0.8
PROJECT earthly-technologies/core
# test runs tests for all defined dind images in this repo
test:
BUILD --pass-args ./os/*+test-build
# release expects to get a renovate branch in the form of renovate/<os>-dind-image, extracts the os and then kicks off its +release target
# this is meant to be run by a github workflow
release:
FROM alpine
# RENOVATE_BRANCH is the renovate branch that is expected to get merged and trigger this target
ARG --required RENOVATE_BRANCH
LET os=${RENOVATE_BRANCH#renovate/}
# remove major-XX- or major-
SET os=$(echo ${os#major-[[:digit:]]?-})
SET os=${os#major-}
# using a LET/SET in the target path does not work, use an ARG instead until it's fixed
ARG OS=${os%-dind-image}
BUILD --pass-args ./os/$OS+release