|
|
@@ -73,17 +73,17 @@ const LaunchFlow: React.FC<PropsType> = (props) => {
|
|
|
};
|
|
|
|
|
|
const getFullActionConfig = (): FullActionConfigType => {
|
|
|
- let imageRepoUri = `${selectedRegistry.url}/${templateName}-${selectedNamespace}`;
|
|
|
+ let imageRepoUri = `${selectedRegistry?.url}/${templateName}-${selectedNamespace}`;
|
|
|
|
|
|
// DockerHub registry integration is per repo
|
|
|
- if (selectedRegistry.service === "dockerhub") {
|
|
|
- imageRepoUri = selectedRegistry.url;
|
|
|
+ if (selectedRegistry?.service === "dockerhub") {
|
|
|
+ imageRepoUri = selectedRegistry?.url;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
git_repo: actionConfig.git_repo,
|
|
|
branch: branch,
|
|
|
- registry_id: selectedRegistry.id,
|
|
|
+ registry_id: selectedRegistry?.id,
|
|
|
dockerfile_path: dockerfilePath,
|
|
|
folder_path: folderPath,
|
|
|
image_repo_uri: imageRepoUri,
|