update
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jeffrey C. Ollie 2021-08-06 23:48:34 -05:00
parent c00be32a90
commit b302305072
Signed by: jeff
GPG key ID: 6F86035A6D97044E
2 changed files with 9 additions and 1 deletions

View file

@ -17,7 +17,11 @@ name: build
steps: steps:
- name: publish - name: publish
image: plugins/kaniko image: plugins/kaniko
environment:
VERSION: 1.22.0
settings: settings:
build_args:
- VERSION=${VERSION}
repo: docker.io/jcollie/healthchecks repo: docker.io/jcollie/healthchecks
repository: docker.io repository: docker.io
username: username:
@ -27,3 +31,4 @@ steps:
tags: tags:
- latest - latest
- latest-${DRONE_BUILD_NUMBER} - latest-${DRONE_BUILD_NUMBER}
- ${VERSION}-${DRONE_BUILD_NUMBER}

View file

@ -1,10 +1,13 @@
FROM python:3.9 FROM python:3.9
ARG VERSION
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
WORKDIR /opt/healthchecks WORKDIR /opt/healthchecks
RUN useradd --system hc && \ RUN useradd --system hc && \
git clone --depth 1 --branch v1.19.0 https://github.com/healthchecks/healthchecks.git /opt/healthchecks && \ git clone --depth 1 --branch v${VERSION} https://github.com/healthchecks/healthchecks.git /opt/healthchecks && \
pip install --no-cache-dir -r /opt/healthchecks/requirements.txt && \ pip install --no-cache-dir -r /opt/healthchecks/requirements.txt && \
pip install --no-cache-dir uwsgi && \ pip install --no-cache-dir uwsgi && \
rm -f /opt/healthchecks/hc/local_settings.py && \ rm -f /opt/healthchecks/hc/local_settings.py && \