You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turns out the Fn CLI tool does not support authentication via the environment variables that the OCI CLI can use (OCI_CLI_USER, OCI_CLI_TENANCY, OCI_CLI_FINGERPRINT, OCI_CLI_KEY_CONTENT, OCI_CLI_REGION). It always tries to look for the OCI configuration files inside the $HOME/.oci/ folder. This is very unfortunate, as those files would never get created in an environment where oci config can't be run, as it is an interactive script.
The only solution I found for now was creating all these files manually inside the action, running the Fn CLI commands, and then deleting all the files. This needs to be done in the same step, or else sensitive info (such as your OCI private key) will be exposed in the Docker layers.
fn create context zonea --provider oracle
fn use context zonea
fn update context oracle.compartment-id $COMPID
fn update context api-url $API_URL
fn update context registry $ARTIFACTORY
fn create app image-import --annotation oracle.com/oci/subnetIds='["$SUBNET"]'
returns error : Fn: provider in position: 1 is nil. ComposingConfigurationProvider does not support nil values
fn list contexts
CURRENT NAME PROVIDER API URL REGISTRY
default default http://localhost:8080
The text was updated successfully, but these errors were encountered: