Skip to content
Snippets Groups Projects
Unverified Commit f35c580e authored by Roman Azarenko's avatar Roman Azarenko
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #7188 passed
stages:
- Docker build
docker:
stage: Docker build
tags: [docker]
interruptible: true
image:
name: gcr.io/kaniko-project/executor:debug-v1.3.0
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- 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}:latest
rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"'
- if: '$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_BRANCH == "master"'
interruptible: true
FROM python:3-alpine
RUN apk update && \
apk add bash git shellcheck && \
git config --global credential.helper store && \
pip install -U flake8 pylint
# Docker image for Python code analysis
Contains:
* Python 3
* Flake8
* Pylint
* Git
Based on `python:3-alpine`.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment