WMGZON/.gitlab-ci.yml

21 lines
573 B
YAML
Raw Normal View History

variables:
2024-01-30 21:56:02 +00:00
APPSECRET: "test"
ENVIRON: "test"
2024-01-30 21:56:02 +00:00
FILESTORE: "static/assets/img/products/"
pytest:
stage: test
script:
- cd /builds/u5500327/wmgzon
- pip install -r requirements.txt
- pytest
deploy:
image: docker:20.10.16
stage: deploy
services:
- docker:20.10.16-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY/group/project/image:latest .
- docker push $CI_REGISTRY/group/project/image:latest