Commit 1bb1b44c authored by Jens Langhammer's avatar Jens Langhammer

ci: add docker build to CI with pushing

parent 4d9501e3
Pipeline #3221 failed with stages
in 3 minutes and 2 seconds
[bumpversion]
current_version = 1.6.3
current_version = 1.8.8
tag = True
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
......@@ -9,3 +9,5 @@ tag_name = debian/{new_version}
[bumpversion:file:pyazo/__init__.py]
[bumpversion:file:Dockerfile]
......@@ -32,6 +32,21 @@ coverage:
- coverage report
stage: test
package-docker:
image: docker
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- docker build -t pyazo_temp .
- docker tag pyazo_temp beryjuorg/pyazo:stable
- docker tag pyazo_temp beryjuorg/pyazo:$(bumpversion --allow-dirty --dry-run --list minor | grep current_version | sed s,"^.*=",,)
- docker push beryjuorg/pyazo:stable
- docker push beryjuorg/pyazo:$(bumpversion --allow-dirty --dry-run --list minor | grep current_version | sed s,"^.*=",,)
stage: build
only:
- tags
- docker-ci-test
- /^debian/.*$/
package-3.5:
before_script:
- apt update
......
FROM python:3.6-alpine
ARG REQUIREMENTS=requirements.txt
LABEL version="1.8.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 bash && \
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 && \
pip install -r /${REQUIREMENTS} && \
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
......
"""pyazo version header"""
__version__ = '1.6.3'
__version__ = '1.8.8'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment