generated from ps2homebrew/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (28 loc) · 881 Bytes
/
docker-compose.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
version: "3.9"
services:
checkout:
# this allows to not invoke `docker build . -t helloworld`
build: .
image: ${APP_NAME}
working_dir: /workspace
command: >
sh -c "repo init -q -u https://github.com/bignaux/ps2pkgs.git &&
mkdir -p .repo/local_manifests/ &&
ln -s apps/${APP_NAME}/helloworld.xml .repo/local_manifests/ &&
repo sync --fail-fast"
volumes:
- workspace:/workspace
build:
image: ${APP_NAME}
depends_on:
- checkout
# see https://github.com/compose-spec/compose-spec/issues/94
# user: ${CURRENT_UID}
working_dir: /workspace/apps/${APP_NAME}
command: make ${MAKE_ARGS}
volumes:
- workspace:/workspace
#TODO ; it would make sense to add your project to repo manifest and checkout with repo.
# avoid to use github actions/checkout
volumes:
workspace: