Skip to content

Commit 80a580d

Browse files
committed
fix prefered deploymentstrategy for apps
1 parent fc01cd5 commit 80a580d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client/src/components/apps/form.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,10 +1962,16 @@ export default defineComponent({
19621962
this.loadBranches();
19631963
this.buildpack = this.pipelineData.buildpack;
19641964
this.buildstrategy = this.pipelineData.buildstrategy;
1965-
this.deploymentstrategy = this.pipelineData.deploymentstrategy;
1965+
//this.deploymentstrategy = this.pipelineData.deploymentstrategy;
19661966
19671967
if (this.app == 'new') {
19681968
1969+
if (this.pipelineData.git.repository.clone_url == '') {
1970+
this.deploymentstrategy = 'docker';
1971+
} else {
1972+
this.deploymentstrategy = 'git';
1973+
}
1974+
19691975
// extract domain from pipeline phase
19701976
for (let i = 0; i < this.pipelineData.phases.length; i++) {
19711977
if (this.pipelineData.phases[i].name == this.phase) {

0 commit comments

Comments
 (0)