Skip to content

Instantly share code, notes, and snippets.

@gtaylor gtaylor/.drone.yml
Last active Feb 17, 2016

Embed
What would you like to do?
Python + Drone + Docker publish
cache:
mount:
- wheeldir
build:
image: python:2.7.11
commands:
- pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir
- pip install --use-wheel --no-index --find-links=wheeldir -r requirements.txt
- nosetests -v test/
publish:
docker:
registry: quay.io
username: $$QUAY_USERNAME
password: $$QUAY_PASSWORD
email: ci@aclima.io
repo: myrepo/my-image
tag: $$TAG
file: Dockerfile
when:
event: tag
FROM python:2.7.11
COPY wheeldir /app/wheeldir
COPY requirements.txt /app/
RUN pip install --use-wheel --no-index --find-links=/app/wheeldir -r /app/requirements.txt
COPY . /app/
WORKDIR /app/
RUN python setup.py install
CMD your-script.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.