소스 검색

gitlab tags fix

Mohammed Nafees 4 년 전
부모
커밋
2d78551f5e
1개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. 12 6
      internal/integrations/ci/gitlab/ci.go

+ 12 - 6
internal/integrations/ci/gitlab/ci.go

@@ -396,6 +396,12 @@ func (g *GitlabCI) getCIJob(jobName string) yaml.MapSlice {
 					),
 				},
 			},
+			yaml.MapItem{
+				Key: "tags",
+				Value: []string{
+					"docker",
+				},
+			},
 		)
 	} else {
 		res = append(res,
@@ -415,6 +421,12 @@ func (g *GitlabCI) getCIJob(jobName string) yaml.MapSlice {
 					),
 				},
 			},
+			yaml.MapItem{
+				Key: "tags",
+				Value: []string{
+					"porter-runner",
+				},
+			},
 		)
 	}
 
@@ -423,12 +435,6 @@ func (g *GitlabCI) getCIJob(jobName string) yaml.MapSlice {
 			Key:   "stage",
 			Value: jobName,
 		},
-		yaml.MapItem{
-			Key: "tags",
-			Value: []string{
-				"porter-runner",
-			},
-		},
 		yaml.MapItem{
 			Key:   "timeout",
 			Value: "20 minutes",