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
I am trying use the app's name in a pre-deploy function, in order to set a label.
My current script is below.
varpreDeployFunction=function(captainAppObj,dockerUpdateObject){returnPromise.resolve().then(function(){// label: versionvarkey="com.example.version";varval=captainAppObj.deployedVersion+'';dockerUpdateObject.TaskTemplate.ContainerSpec.Labels[key]=val;// label: appnamevarkey="com.example.app_name";varval="app name should go here";// captainAppObj.something+ '';dockerUpdateObject.TaskTemplate.ContainerSpec.Labels[key]=valreturndockerUpdateObject;});};
Is there a way to access the app name via captainAppObj?
The text was updated successfully, but these errors were encountered:
I am trying use the app's name in a pre-deploy function, in order to set a label.
My current script is below.
Is there a way to access the app name via captainAppObj?
The text was updated successfully, but these errors were encountered: