.drone.yml aktualisiert
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Anja Freudenreich 2025-02-13 14:03:38 +00:00
parent 99f72e0107
commit 57b899f315

View File

@ -7,18 +7,17 @@ steps:
image: python:3.9-slim image: python:3.9-slim
commands: commands:
- pip install --no-cache-dir -r requirements.txt - pip install --no-cache-dir -r requirements.txt
- python app.py & # Run the Flask app in the background to simulate deployment - python app.py & # Run Flask app in background
- name: build docker image and deploy - name: deploy
image: docker:20.10 # Docker image to build and run the container image: python:3.9-slim
services: when:
- name: docker status: success
image: docker:20.10
privileged: true # Allow Docker-in-Docker for building the image
commands: commands:
- docker build -t my-flask-app:${DRONE_BUILD_NUMBER} . # Build Docker image - echo "Deploying app to production..."
- docker run -d -p 5000:5000 my-flask-app:${DRONE_BUILD_NUMBER} # Run Flask app in container - python deploy.py # Run your deployment script or use SSH
secrets: [ eins ] # Use secrets to securely store deployment credentials
trigger: trigger:
branch: branch:
- master - master