mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 09:46:09 +00:00 
			
		
		
		
	merged dev into debian
This commit is contained in:
		@@ -36,6 +36,19 @@ build:docker:
 | 
				
			|||||||
    - docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
 | 
					    - docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
 | 
				
			||||||
    - docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
 | 
					    - docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test:
 | 
				
			||||||
 | 
					  image: python:3.10-slim-bullseye
 | 
				
			||||||
 | 
					  stage: test
 | 
				
			||||||
 | 
					  before_script:
 | 
				
			||||||
 | 
					    - pip install -r requirements.txt
 | 
				
			||||||
 | 
					    - pip install pytest httpx
 | 
				
			||||||
 | 
					    - mkdir -p app/cert
 | 
				
			||||||
 | 
					    - openssl genrsa -out app/cert/instance.private.pem 2048
 | 
				
			||||||
 | 
					    - openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem
 | 
				
			||||||
 | 
					    - cd test
 | 
				
			||||||
 | 
					  script:
 | 
				
			||||||
 | 
					    - pytest main.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test:debian:
 | 
					test:debian:
 | 
				
			||||||
  image: debian:bookworm-slim
 | 
					  image: debian:bookworm-slim
 | 
				
			||||||
  stage: test
 | 
					  stage: test
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user