From d747c4cb200fa13daceec47be4505148a2c7763c Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 22 May 2021 13:22:37 +0300
Subject: [PATCH] Remove the manual CI stages.

The pre-commit template now runs in .pre. Reorder the other jobs.
---
 .gitlab-ci.yml | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 209ecc3..3a12301 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,12 +5,6 @@ include:
   - project: shore/ci-templates
     file: templates/terraform.yml
 
-stages:
-  - test
-  - build
-  - plan
-  - apply
-
 Generate payload:
   stage: build
   image: registry.shore.co.il/ci-images:python3
@@ -30,13 +24,13 @@ Generate payload:
 
 Terraform plan:
   extends: .tf_plan
-  stage: plan
+  stage: test
   dependencies:
     - Generate payload
 
 Terraform apply:
   extends: .tf_apply
-  stage: apply
+  stage: deploy
   dependencies: &tf_apply_dependecies
     - Generate payload
     - Terraform plan
-- 
GitLab