function GetPolicy(timeoutSeconds=60, maxInstances=15){
let config = functions.config()
let enviornment = config.app.enviornment;
if (enviornment == 'local') {
return {
timeoutSeconds: 60,
maxInstances: 2,
vpcConnector : "******",
vpcConnectorEgressSettings: '*********'
}
} else {
return {
timeoutSeconds: timeoutSeconds != null ? timeoutSeconds: 60,
// memory: '2GB',
// retry: true,
maxInstances: maxInstances != null ? maxInstances: 15,
vpcConnector : "********",
vpcConnectorEgressSettings: '**********'
}
}
}
I am exploring GitHub secrets along with GitHub Actions to deploy firebase function on cloud. In my app I am using firebase.config() methods to retrieve my secret values like environment etc. which I want to put in GitHub secrets and want to retrieve from there instead of retrieving it from functions.config() method. Is there any way to do so, if yes please share it here with a short example.