-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEarthfile
More file actions
44 lines (38 loc) · 921 Bytes
/
Earthfile
File metadata and controls
44 lines (38 loc) · 921 Bytes
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
FROM hseeberger/scala-sbt:11.0.13_1.6.1_2.13.8
WORKDIR .
deps:
COPY build.sbt ./
COPY project project
COPY .scalafmt.conf .scalafmt.conf
COPY .scalafix.conf .scalafix.conf
COPY version.sbt version.sbt
COPY .github .github
RUN sbt update
unit-test:
FROM +deps
COPY macros macros
RUN sbt ++test
lint-check:
FROM +deps
COPY macros macros
RUN sbt checkAll
build:
FROM +deps
COPY macros macros
RUN sbt ++compile
publish:
FROM +deps
COPY macros macros
RUN \
--secret PGP_PASSPHRASE=+secrets/PGP_PASSPHRASE \
--secret PGP_SECRET=+secrets/PGP_SECRET \
--secret SONATYPE_PASSWORD=+secrets/SONATYPE_PASSWORD \
--secret SONATYPE_USERNAME=+secrets/SONATYPE_USERNAME \
--secret CI_RELEASE=+secrets/CI_RELEASE \
--secret CI_SNAPSHOT_RELEASE=+secrets/CI_SNAPSHOT_RELEASE \
sbt ci-release
all:
BUILD +lint-check
BUILD +build
BUILD +unit-test
BUILD +publish