-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathaction.yml
More file actions
97 lines (81 loc) · 3.09 KB
/
Copy pathaction.yml
File metadata and controls
97 lines (81 loc) · 3.09 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: 'MongoDB in GitHub Actions'
description: 'Start a MongoDB server (on default port 27017 or a custom port)'
branding:
icon: 'database'
color: 'green'
inputs:
mongodb-image:
description: 'MongoDB image to use (defaults to using "mongo" from Docker Hub but you could also use an image from another repository such as Amazons "public.ecr.aws/docker/library/mongo")'
required: false
default: 'mongo'
mongodb-version:
description: 'MongoDB version to use (default: "latest")'
required: false
default: 'latest'
mongodb-replica-set:
description: 'MongoDB replica set name (no replica set by default)'
required: false
default: ''
mongodb-port:
description: 'MongoDB port to use (default: 27017)'
required: false
default: 27017
mongodb-db:
description: 'MongoDB db to create (default: none)'
required: false
default: ''
mongodb-username:
description: 'MongoDB root username (default: none)'
required: false
default: ''
mongodb-password:
description: 'MongoDB root password (default: none)'
required: false
default: ''
mongodb-container-name:
description: 'MongoDB container name (default: "mongodb")'
required: false
default: 'mongodb'
mongodb-key:
description: 'MongoDB key, required if replica set and auth are setup through username and password (no key set by default)'
required: false
default: ''
mongodb-authsource:
description: 'MongoDB authenticationDatabase a.k.a authSource to use (default: "admin" based on https://github.com/docker-library/mongo/blob/master/8.0/docker-entrypoint.sh#L372C4-L372C20)'
required: false
default: 'admin'
mongodb-replica-set-host:
description: 'MongoDB replica set host, must be accessible from both internal container and external usage (default: "localhost")'
required: false
default: 'localhost'
docker-network:
description: 'Docker network to attach the MongoDB container to. If not provided, will try to use the default GitHub Actions network if available (github_network_<rand>).'
required: false
default: ''
docker-network-alias:
description: 'Network alias for the MongoDB container when attaching to a Docker network. If not provided, will use mongodb-container-name input'
required: false
default: ''
mongodb-extra-env:
description: 'Extra environment variables to pass to the MongoDB container, one KEY=VALUE per line (e.g. "GLIBC_TUNABLES=glibc.pthread.rseq=1")'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.mongodb-image }}
- ${{ inputs.mongodb-version }}
- ${{ inputs.mongodb-replica-set }}
- ${{ inputs.mongodb-port }}
- ${{ inputs.mongodb-db }}
- ${{ inputs.mongodb-username }}
- ${{ inputs.mongodb-password }}
- ${{ inputs.mongodb-container-name }}
- ${{ inputs.mongodb-key }}
- ${{ inputs.mongodb-authsource }}
- ${{ inputs.mongodb-replica-set-host }}
- ${{ inputs.docker-network }}
- ${{ inputs.docker-network-alias }}
- ${{ inputs.mongodb-extra-env }}
post-entrypoint: /stop-mongodb.sh