-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbatect.yml
39 lines (38 loc) · 1.04 KB
/
batect.yml
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
containers:
build-env:
image: eclipse-temurin:21-jdk-jammy
run_as_current_user:
enabled: true
home_directory: /home/container-user
volumes:
- local: .
container: /code
options: cached
- local: ~/.m2
container: /home/container-user/.m2
options: cached
working_directory: /code
tasks:
# NB -- local build need "clean", but CI (GitHub actions) does not:
# Docker copies in the local repo clone, including any artifacts such as
# build/ or target/ directories; CI starts from a fresh clone
build:
description: Build and test with Maven
run:
container: build-env
command: ./mvnw --no-transfer-progress clean verify site
demo:
description: Runs the demo program
run:
container: build-env
command: ./run
java-demo:
description: Runs the Java demo program
run:
container: build-env
command: ./run -L java main
shell:
description: Opens a shell in the container
run:
container: build-env
command: /bin/bash