ci: Only push and deploy in main

This commit is contained in:
Fam Zheng 2025-03-01 16:18:50 +00:00
parent f1baf61112
commit 6f0a31aba1

View File

@ -18,6 +18,8 @@ download-models:
artifacts: artifacts:
paths: paths:
- detection/model - detection/model
except:
- main
cache: cache:
key: models key: models
paths: paths:
@ -25,6 +27,8 @@ download-models:
test: test:
stage: test-and-build stage: test-and-build
except:
- main
tags: tags:
- emblem-dev - emblem-dev
before_script: before_script:
@ -39,6 +43,8 @@ test:
build-alg: build-alg:
stage: test-and-build stage: test-and-build
except:
- main
tags: tags:
- emblem-dev - emblem-dev
script: script:
@ -51,6 +57,8 @@ build-alg:
build-web: build-web:
stage: test-and-build stage: test-and-build
except:
- main
tags: tags:
- emblem-dev - emblem-dev
before_script: before_script:
@ -63,6 +71,8 @@ build-web:
build-docker: build-docker:
stage: build-docker stage: build-docker
except:
- main
tags: tags:
- emblem-dev - emblem-dev
script: script:
@ -77,6 +87,8 @@ build-docker:
deploy-dev: deploy-dev:
stage: deploy stage: deploy
except:
- main
tags: tags:
- emblem-dev - emblem-dev
only: only:
@ -88,6 +100,8 @@ deploy-dev:
dev-smoke: dev-smoke:
stage: test-and-build stage: test-and-build
except:
- main
tags: tags:
- emblem-dev - emblem-dev
allow_failure: true allow_failure: true