...
 
Commits (3)
[bumpversion]
current_version = 1.9.8
current_version = 1.9.9
tag = True
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
......@@ -13,7 +13,5 @@ tag_name = debian/{new_version}
[bumpversion:file:pyazo/__init__.py]
[bumpversion:file:Dockerfile]
[bumpversion:file:.gitlab-ci.yml]
env
helm
static
assets
web
clients
media
......@@ -41,7 +41,7 @@ package-docker:
before_script:
- echo "{\"auths\":{\"docker.$NEXUS_URL\":{\"auth\":\"$NEXUS_AUTH\"}}}" > /kaniko/.docker/config.json
script:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination docker.pkg.beryju.org/pyazo:stable --destination docker.pkg.beryju.org/pyazo:1.9.8
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination docker.pkg.beryju.org/pyazo:stable --destination docker.pkg.beryju.org/pyazo:1.9.9
stage: build
only:
- tags
......
FROM python:3.6-alpine
ARG REQUIREMENTS=requirements.txt
LABEL version="1.9.8"
COPY ${REQUIREMENTS} /
RUN apk update && \
apk add --no-cache openssl-dev libffi-dev libmagic libffi-dev build-base py2-pip python2-dev jpeg libxml2-dev libxslt-dev libffi-dev gcc musl-dev libgcc openssl-dev curl jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev openldap-dev && \
pip install -r /${REQUIREMENTS} && \
pip install psycopg2-binary && \
apk del openssl-dev libffi-dev libffi-dev build-base py2-pip python2-dev libxml2-dev libxslt-dev libffi-dev gcc musl-dev libgcc openssl-dev curl jpeg-dev zlib-dev freetype-dev lcms2-dev tk-dev tcl-dev && \
adduser -S pyazo
FROM python:3.6-slim-stretch as build
COPY ./pyazo/ /app/pyazo
COPY ./static/ /app/static
COPY ./manage.py /app/
COPY ./requirements.txt /app/
RUN chown -R pyazo /app
USER pyazo
WORKDIR /app/
RUN apt-get update && apt-get install build-essential libssl-dev libffi-dev libsasl2-dev python-dev libldap2-dev libssl-dev -y && \
mkdir /app/static/ && \
pip install -r requirements.txt && \
pip install psycopg2 && \
./manage.py collectstatic --no-input && \
apt-get remove --purge -y build-essential && \
apt-get autoremove --purge -y
FROM python:3.6-slim-stretch
COPY ./pyazo/ /app/pyazo
COPY ./manage.py /app/
COPY ./requirements.txt /app/
COPY --from=build /app/static /app/static/
WORKDIR /app/
RUN apt-get update && apt-get install build-essential libssl-dev libffi-dev libsasl2-dev python-dev libldap2-dev libssl-dev -y && \
pip install -r requirements.txt && \
pip install psycopg2 && \
adduser --system --home /app/ pyazo && \
chown -R pyazo /app/ && \
apt-get remove --purge -y build-essential && \
apt-get autoremove --purge -y
USER pyazo
pyazo (1.9.8) stable; urgency=medium
pyazo (1.9.9) stable; urgency=medium
* improve docker image
* improve kubernetes deployment and docs
......
apiVersion: v1
appVersion: "1.9.8"
appVersion: "1.9.9"
description: A Helm chart for pyazo.
name: pyazo
version: 1.9.8
version: 1.9.9
icon: https://pyazo.beryju.org/images/logo.png
......@@ -5,7 +5,7 @@
replicaCount: 1
image:
tag: 1.9.8
tag: 1.9.9
nameOverride: ""
......
"""pyazo version header"""
__version__ = '1.9.8'
__version__ = '1.9.9'