themblem/.gitlab-ci.yml
2025-05-15 19:50:32 +01:00

91 lines
1.2 KiB
YAML

stages:
- test-and-build
- build-docker
- deploy
cache:
key: one-key-to-rule-them-all
paths:
- venv
test:
stage: test-and-build
except:
- main
tags:
- i7
script:
- make opencv -j$(nproc --ignore=2)
- make test
build-web:
stage: test-and-build
except:
- main
tags:
- i7
before_script:
- (cd web; npm install)
script:
- make web
artifacts:
paths:
- build
build-docker:
stage: build-docker
except:
- main
tags:
- i7
script:
- make docker-build
- make docker-push
dependencies:
- build-web
except:
- main
deploy-dev:
stage: deploy
except:
- main
tags:
- i7
script:
- make deploy-api-dev
cache: []
dependencies: []
dev-smoke:
stage: test-and-build
except:
- main
tags:
- i7
allow_failure: true
script:
- ./scripts/emcli --env dev activate 0074253255108
- ./api/scripts/api_smoke.py -p $EMBLEM_CI_PASSWORD
cache: []
deploy-prod:
stage: deploy
tags:
- i7
only:
- main
script:
- make deploy-api-prod
cache: []
dependencies: []
deploy-roi-worker:
tags:
- emblem-s1
stage: deploy
when: manual
script:
- make deploy-roi-worker
cache: []