Skip to content

Commit 3e83d6e

Browse files
docs: Add explanation of actor.json with git-workflow
Signed-off-by: Patrik Braborec <[email protected]>
1 parent 05cc36c commit 3e83d6e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sources/platform/actors/development/programming_interface/environment_variables.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ Actor owners can define custom environment variables in `.actor/actor.json`. All
9999
}
100100
```
101101

102+
:::warn Git-workflow with actor.json
103+
104+
Be aware that if you define `environmentVariables` in `.actor/actor.json`, it only works with [Apify CLI](/cli). If you use a Git workflow for Actor development, the environment variables will not work properly, and we encourage you to define them in Apify Console.
105+
106+
:::
107+
102108
## Set up environment variables in Apify Console
103109

104110
Actor owners can define custom environment variables to pass additional configuration to their Actors. To set custom variables:
@@ -214,7 +220,7 @@ ARG MY_BUILD_VARIABLE
214220
RUN echo $MY_BUILD_VARIABLE
215221
```
216222

217-
:::caution Insecure build variables
223+
:::caution Variables set during the build
218224

219225
Build-time environment variables are not suitable for secrets, as they are not encrypted.
220226

0 commit comments

Comments
 (0)