Commit ef1f85a2 authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

ci: add docker image build on default

parent 567bac612b9e
Pipeline #65828 failed with stages
in 8 minutes and 32 seconds
......@@ -3,15 +3,40 @@ image: python:3.7
before_script:
- pip install tox
stages:
- lint
- tests
- release
check-manifest:
stage: lint
script: tox -e check-manifest
flake8:
stage: lint
script: tox -e flake8
py3:
stage: tests
image: r.ext.logilab.fr/jenkins/jnlp:buster
script: tox -e py3
artifacts:
paths:
- py3-deprecated-warnings.json
image_build_latest:
stage: release
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_HG_SHORT_SHA
--destination $CI_REGISTRY_IMAGE:latest
rules:
- if: '$CI_COMMIT_REF_NAME == "branch/default"'
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