pflaenz.li/.drone.yml
Jannis Portmann 571918ec15
Some checks failed
continuous-integration/drone/push Build is failing
Stay in top dir
2024-02-11 19:19:22 +01:00

54 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: build-latest
steps:
- name: test
image: python:3.12-slim-bookworm
settings:
repo: git.thisfro.ch/pflaenz.li/pflaenzli
commands:
- pip install coverage
- pip install -r requirements.txt
- coverage run --branch --source='.' pflaenzli/manage.py test
- coverage report -m
- name: build-image
image: plugins/docker
settings:
repo: git.thisfro.ch/pflaenz.li/pflaenzli
dockerfile: Dockerfile
tags:
- latest
- ${DRONE_BUILD_NUMBER}
registry: git.thisfro.ch/pflaenz.li/pflaenzli
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
type: docker
name: build-stable
steps:
- name: build-image
image: plugins/docker
settings:
repo: git.thisfro.ch/pflaenz.li/pflaenzli
dockerfile: Dockerfile
tags:
- stable
registry: git.thisfro.ch/pflaenz.li/pflaenzli
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
- promote
target:
- production