You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-28Lines changed: 30 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,34 +131,36 @@ It will save that information to `~/.actrc`, please refer to [Configuration](#co
131
131
# Flags
132
132
133
133
```none
134
-
-a, --actor string user that triggered the event (default "nektos/act")
135
-
-b, --bind bind working directory to container, rather than copy
136
-
--container-architecture string Architecture which should be used to run containers, e.g.: linux/amd64. If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms.
137
-
--defaultbranch string the name of the main branch
138
-
--detect-event Use first event type from workflow as event that triggered the workflow
139
-
-C, --directory string working directory (default ".")
140
-
-n, --dryrun dryrun mode
141
-
--env stringArray env to make available to actions with optional value (e.g. --env myenv=foo or -s myenv)
142
-
--env-file string environment file to read and use as env in the containers (default ".env")
143
-
-e, --eventpath string path to event JSON file
144
-
--github-instance string GitHub instance to use. Don't use this if you are not using GitHub Enterprise Server. (default "github.com")
145
-
-g, --graph draw workflows
146
-
-h, --help help for act
147
-
--insecure-secrets NOT RECOMMENDED! Doesn't hide secrets while printing logs.
148
-
-j, --job string run job
149
-
-l, --list list workflows
150
-
-P, --platform stringArray custom image to use per platform (e.g. -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04)
151
-
--privileged use privileged mode
152
-
-p, --pull pull docker image(s) even if already present
153
-
-q, --quiet disable logging of output from steps
154
-
-r, --reuse reuse action containers to maintain state
155
-
-s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret)
156
-
--secret-file string file with list of secrets to read from (e.g. --secret-file .secrets) (default ".secrets")
157
-
--use-gitignore Controls whether paths specified in .gitignore should be copied into container (default true)
158
-
--userns string user namespace to use
159
-
-v, --verbose verbose output
160
-
-w, --watch watch the contents of the local repo and run when files change
161
-
-W, --workflows string path to workflow file(s) (default "./.github/workflows/")
134
+
-a, --actor string user that triggered the event (default "nektos/act")
135
+
-b, --bind bind working directory to container, rather than copy
136
+
--container-architecture string Architecture which should be used to run containers, e.g.: linux/amd64. If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms.
137
+
--container-daemon-socket string Path to Docker daemon socket which will be mounted to containers (default "/var/run/docker.sock")
138
+
--defaultbranch string the name of the main branch
139
+
--detect-event Use first event type from workflow as event that triggered the workflow
140
+
-C, --directory string working directory (default ".")
141
+
-n, --dryrun dryrun mode
142
+
--env stringArray env to make available to actions with optional value (e.g. --e myenv=foo or -s myenv)
143
+
--env-file string environment file to read and use as env in the containers (default ".env")
144
+
-e, --eventpath string path to event JSON file
145
+
--github-instance string GitHub instance to use. Don't use this if you are not using GitHub Enterprise Server. (default "github.com")
146
+
-g, --graph draw workflows
147
+
-h, --help help for act
148
+
--insecure-secrets NOT RECOMMENDED! Doesn't hide secrets while printing logs.
149
+
-j, --job string run job
150
+
-l, --list list workflows
151
+
--no-recurse Flag to disable running workflows from subdirectories of specified path in '--workflows'/'-W' flag
152
+
-P, --platform stringArray custom image to use per platform (e.g. -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04)
153
+
--privileged use privileged mode
154
+
-p, --pull pull docker image(s) even if already present
155
+
-q, --quiet disable logging of output from steps
156
+
-r, --reuse reuse action containers to maintain state
157
+
-s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret)
158
+
--secret-file string file with list of secrets to read from (e.g. --secret-file .secrets) (default ".secrets")
159
+
--use-gitignore Controls whether paths specified in .gitignore should be copied into container (default true)
160
+
--userns string user namespace to use
161
+
-v, --verbose verbose output
162
+
-w, --watch watch the contents of the local repo and run when files change
163
+
-W, --workflows string path to workflow file(s) (default "./.github/workflows/")
162
164
```
163
165
164
166
In case you want to pass a value for `${{ github.token }}`, you should pass `GITHUB_TOKEN` as secret: `act -s GITHUB_TOKEN=[insert token or leave blank for secure input]`.
rootCmd.PersistentFlags().StringVarP(&input.envfile, "env-file", "", ".env", "environment file to read and use as env in the containers")
63
63
rootCmd.PersistentFlags().StringVarP(&input.containerArchitecture, "container-architecture", "", "", "Architecture which should be used to run containers, e.g.: linux/amd64. If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms.")
64
+
rootCmd.PersistentFlags().StringVarP(&input.containerDaemonSocket, "container-daemon-socket", "", "/var/run/docker.sock", "Path to Docker daemon socket which will be mounted to containers")
64
65
rootCmd.PersistentFlags().StringVarP(&input.githubInstance, "github-instance", "", "github.com", "GitHub instance to use. Don't use this if you are not using GitHub Enterprise Server.")
0 commit comments