Add Dockerfile and drone build instructions
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:
14
.drone.yml
14
.drone.yml
@@ -7,3 +7,17 @@ steps:
|
|||||||
image: python:3-alpine
|
image: python:3-alpine
|
||||||
commands:
|
commands:
|
||||||
- python3 -m unittest
|
- python3 -m unittest
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: docker.dietrich-rink.de
|
||||||
|
repo: docker.dietrich-rink.de/drone-test
|
||||||
|
auto_tag: true
|
||||||
|
username:
|
||||||
|
from_secret: registry_user
|
||||||
|
password:
|
||||||
|
from_secret: registry_pass
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|||||||
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM python:3-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY drone_test ./
|
||||||
|
|
||||||
|
CMD [
|
||||||
|
"python",
|
||||||
|
"-c",
|
||||||
|
"from drone_test import circle_area; print(circle_area(2)"
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user