Cédric Krier pushed to branch branch/default at Tryton / Tryton Docker tryton Test
Commits: 9afd2f10 by Cédric Krier at 2022-12-25T16:40:34+01:00 Add gitlab CI - - - - - 2 changed files: - + .gitlab-ci.yml - − update.sh Changes: ===================================== .gitlab-ci.yml ===================================== @@ -0,0 +1,40 @@ +stages: + - build + - publish + +.python-version: + parallel: + matrix: + - PYTHON_VERSION: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + +build: + stage: build + tags: + - container-registry-push + extends: .python-version + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + script: + - /kaniko/executor + --context "${CI_PROJECT_DIR}" + --dockerfile "${CI_PROJECT_DIR}/${PYTHON_VERSION}/Dockerfile" + --destination "${CI_REGISTRY_IMAGE}/tryton-test:${PYTHON_VERSION}-${CI_COMMIT_SHA}" + --tar-path image-${PYTHON_VERSION}.tar + artifacts: + paths: + - image-{$PYTHON_VERSION}.tar + +publish: + stage: publish + extends: .python-version + image: + name: gcr.io/go-containerregistry/crane:debug + entrypoint: [""] + needs: + - build + script: + - crane auth login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} ${DOCKER_SERVER} + - crane push image-${PYTHON_VERSION}.tar tryton/tryton-test:${PYTHON_VERSION} + rules: + - if: $CI_COMMIT_BRANCH =~ /^branch\/.*/ ===================================== update.sh deleted ===================================== @@ -1,15 +0,0 @@ -#!/bin/sh - -docker build -q --rm --no-cache -t tryton/tryton-test:3.5 3.5 -docker build -q --rm --no-cache -t tryton/tryton-test:3.6 3.6 -docker build -q --rm --no-cache -t tryton/tryton-test:3.7 3.7 -docker build -q --rm --no-cache -t tryton/tryton-test:3.8 3.8 -docker build -q --rm --no-cache -t tryton/tryton-test:3.9 3.9 -docker build -q --rm --no-cache -t tryton/tryton-test:3.10 3.10 - -docker push tryton/tryton-test:3.5 -docker push tryton/tryton-test:3.6 -docker push tryton/tryton-test:3.7 -docker push tryton/tryton-test:3.8 -docker push tryton/tryton-test:3.9 -docker push tryton/tryton-test:3.10 View it on Heptapod: https://foss.heptapod.net/tryton/tryton-docker-tryton-test/-/commit/9afd2f10c9b59f0b36d7dd963dc04e8bd1d21ded -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton-docker-tryton-test/-/commit/9afd2f10c9b59f0b36d7dd963dc04e8bd1d21ded You're receiving this email because of your account on foss.heptapod.net.