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:
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