This commit is contained in:
parent
c00be32a90
commit
b302305072
2 changed files with 9 additions and 1 deletions
|
@ -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}
|
||||||
|
|
|
@ -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 && \
|
||||||
|
|
Loading…
Reference in a new issue