-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.43 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
version: '3'
services:
# This service is used by GitHub actions
add-header-action:
image: minituff/add-header-action # Use the local image
container_name: add-header-action
working_dir: /github/workspace # Same as github will apply
tty: true
volumes:
# This mount only works in github actions
# - /workspaces/add-header-action:/github/workspace
- $PWD/test:/github/workspace
command: |
--dry-run
true
--verbose
false
# Github actions will create the following mounts
# -v "/home/runner/work/_temp/_github_home":"/github/home"
# -v "/home/runner/work/_temp/_github_workflow":"/github/workflow"
# -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands"
# -v "/home/runner/work/nautical-backup/nautical-backup":"/github/workspace"
# This service is only locally for development
# docker compose run add-header-action-local
add-header-action-local:
image: minituff/add-header-action # Use the local image
container_name: add-header-action-local
working_dir: /github/workspace # Same as github will apply
tty: true
volumes:
- C:\Users\James-PC\IdeaProjects\add-header-action\test:/github/workspace
# Use this to keep the container open so you can shell inside it
# entrypoint: ["tail", "-f", "/dev/null"]
command: |
--dry-run
true
--verbose
true
--file-name
.headerrc.yml