Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit ee67ad06 authored by Moul's avatar Moul
Browse files

[enh] Add build for v3.5, 3.6, 3.7, and 3.8:

- based on Debian Buster slim
- build jobs inherits from common block: publish with tag and latestt
- Install libsodium
- Install Poetry with pip
- 3.8: install Black
parents
test_build_image:
image: docker:git
tags:
- docker
services:
- docker:dind
script:
- docker build 3.5
- docker build 3.6
- docker build 3.7
- docker build 3.8
except:
- tags
.build_image:
image: docker:git
tags:
- docker
services:
- docker:dind
script:
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" $PYTHON_VERSION
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG"
- docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG"
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest"
- docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest"
only:
- tags
build_3_5:
extends: .build_image
variables:
PYTHON_VERSION: "3.5"
build_3_6:
extends: .build_image
variables:
PYTHON_VERSION: "3.6"
build_3_7:
extends: .build_image
variables:
PYTHON_VERSION: "3.7"
build_3_8:
extends: .build_image
variables:
PYTHON_VERSION: "3.8"
FROM python:3.5-slim-buster
# Install libsodium
RUN apt update
RUN apt install --yes libsodium23
# Install Poetry
RUN pip3 install poetry
FROM python:3.6-slim-buster
# Install libsodium
RUN apt update
RUN apt install --yes libsodium23
# Install Poetry
RUN pip3 install poetry
FROM python:3.7-slim-buster
# Install libsodium
RUN apt update
RUN apt install --yes libsodium23
# Install Poetry
RUN pip3 install poetry
FROM python:3.8-rc-slim-buster
# Install libsodium
RUN apt update
RUN apt install --yes libsodium23 black
# Install Poetry
RUN pip3 install poetry
This diff is collapsed.
## Poetry Docker
Docker images made for Duniter client projects written in Python using Poetry.
Images based on [official Python3 images](https://hub.docker.com/_/python?tab=description), with Debian Buster Slim, [Pyoetry](ttps://poetry.eustace.io/), and libsodium
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