pflaenz.li/.drone.yml
Jannis Portmann 6b36ccc87a
Some checks failed
continuous-integration/drone/push Build is failing
Test testing
2024-02-11 19:17:59 +01:00

55 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:
- cd pflaenzli
- pip install coverage
- pip install -r requirements.txt
- coverage run --branch --source='.' 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