Add Drone CI configuration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7614131511
commit
13f37be9c2
1 changed files with 35 additions and 0 deletions
35
.drone.yml
Normal file
35
.drone.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Test stage
|
||||||
|
- name: test
|
||||||
|
image: python:3-bookworm
|
||||||
|
commands:
|
||||||
|
- pip install --no-cache-dir -r requirements.txt
|
||||||
|
- pip install --no-cache-dir -e .
|
||||||
|
- python -m unittest discover cvs_proxy
|
||||||
|
|
||||||
|
# Docker build and push stage
|
||||||
|
- name: docker-build-push
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: docker.gutierrezdequevedo.com
|
||||||
|
repo: docker.gutierrezdequevedo.com/ps/cvs-proxy
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_COMMIT_SHA:0:7}
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
context: .
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- "*"
|
||||||
|
event:
|
||||||
|
- push
|
||||||
Loading…
Add table
Add a link
Reference in a new issue