I'm trying to deploy my Trigger.dev jobs in a Docker build environment without using GitHub Actions or any other CI system. I understand that when running in CI, we can use the TRIGGER_API_URL and TRIGGER_ACCESS_TOKEN environment variables for authentication.
Current situation:
- I'm building a Docker image that needs to run
bun run trigger.deployduring the build process - When I run this command, it tries to do an interactive login with a browser authentication flow
- Now this allow me to login, but with the Docker image being re-deployed, I've have to login in to each instance.
What I've tried:
- Using Github Actions, but due to the complexity of my code. I'm unable to get it to run, without being unable to access certain npm packages & files.
- Setting
TRIGGER_API_URLandTRIGGER_ACCESS_TOKENenvironment variables - **Attempting **to simulating a CI environment. (I didn't get it working)
- Looking for documentation on non-interactive authentication outside of CI
My question:
Is there a way to use my access token to authenticate and deploy triggers without being in an actual CI environment? Specifically, can I make the CLI accept my access token for authentication during a Docker build or other non-interactive environment?
I'd appreciate any guidance on how to handle this use case. If there's no official way to do this yet, would you consider adding support for non-interactive authentication using access tokens outside of CI environments?