Apify Discord Mirror

Updated 5 months ago

Use env variables for actor at build time from apify-cli

At a glance

The community member is asking if it's possible to set environment variables during the build time of an Apify actor using the Apify CLI, as opposed to only being able to do so through the Apify GUI. The community member mentions that they are creating the actor using the Apify CLI and planning to automate the process via GitHub Actions, which would not work if the environment variables can only be set through the GUI.

One of the comments indicates that this topic was discussed in a Discord channel, but there is no explicitly marked answer provided in the information given.

Useful resources
Hi, I find out that it seems that it's possible to tell apify to apply env variable also during build time only from the GUI like this, there's no other way? I'm creating actor via apify-cli using 'apify-cli push' and planning to automating it via github actions and obviously in this way will not work
Attachment
Screenshot_2023-12-02_at_14.26.58.png
Add a reply
Sign up and join the conversation on Discord