From 6f0a31aba103b89f98cd8036d4a78e9eeee46fd1 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sat, 1 Mar 2025 16:18:50 +0000 Subject: [PATCH] ci: Only push and deploy in main --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69d4bc9..43639bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,8 @@ download-models: artifacts: paths: - detection/model + except: + - main cache: key: models paths: @@ -25,6 +27,8 @@ download-models: test: stage: test-and-build + except: + - main tags: - emblem-dev before_script: @@ -39,6 +43,8 @@ test: build-alg: stage: test-and-build + except: + - main tags: - emblem-dev script: @@ -51,6 +57,8 @@ build-alg: build-web: stage: test-and-build + except: + - main tags: - emblem-dev before_script: @@ -63,6 +71,8 @@ build-web: build-docker: stage: build-docker + except: + - main tags: - emblem-dev script: @@ -77,6 +87,8 @@ build-docker: deploy-dev: stage: deploy + except: + - main tags: - emblem-dev only: @@ -88,6 +100,8 @@ deploy-dev: dev-smoke: stage: test-and-build + except: + - main tags: - emblem-dev allow_failure: true