
I tried to setup a gitlab CI that push functions from an appwrite.json, tho when doing a first push it fails saying it needs a session. Tho it does create the function but without a domain. And if i relaunch the CI, it can deploy without issues.
After looking at the cli sdk i saw that it came from this : https://github.com/appwrite/sdk-for-cli/blob/master/lib/commands/push.js#L1490
try {
const variables = await consoleVariables({ parseOutput: false, sdk: await sdkForConsole() });
domain = ID.unique() + '.' + variables['_APP_DOMAIN_FUNCTIONS'];
} catch (error) {
console.error('Error fetching console variables.');
throw error;
}
and i suspect that the sdkForConsole
needs a session but the key doesn't have one.
Maybe as a fix, it could be nice to have an option like --no-domain
or to just warn instead of completely stop the deployement.

and also yes the function is created inside the CI, as the ID is manually generated with a npm command and put in the appwrite.json before the first main push

and i don't really want to create a console user for the gitlab CI
Recommended threads
- Cannot build angular 20 sites
The openruntime node 22 version is 22.9 and angular 20 requires 22.14 or above. Could you please release a new openruntime node 22 version for angular 20 ?
- appwrite/appwrite:1.7.4 image missing En...
Hi Team, I'm experiencing a critical issue when deploying the official appwrite/appwrite:1.7.4 Docker image. After pulling the image (both by tag and by digest...
- cannot update env _APP_SYSTEM_SECURITY_E...
I tried updating .env file using vim and change the env _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=arcivalpalma07@gmail.com and save. docker compose up -d docker com...
