Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Code analysis - Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Test
Code analysis - Python
Commits
f35c580e
Unverified
Commit
f35c580e
authored
4 years ago
by
Roman Azarenko
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
No related branches found
No related tags found
No related merge requests found
Pipeline
#7188
passed
4 years ago
Stage: Docker build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+22
-0
22 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+6
-0
6 additions, 0 deletions
Dockerfile
README.md
+10
-0
10 additions, 0 deletions
README.md
with
38 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
22
−
0
View file @
f35c580e
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
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
6
−
0
View file @
f35c580e
FROM
python:3-alpine
RUN
apk update
&&
\
apk add bash git shellcheck
&&
\
git config
--global
credential.helper store
&&
\
pip
install
-U
flake8 pylint
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
10
−
0
View file @
f35c580e
# Docker image for Python code analysis
Contains:
*
Python 3
*
Flake8
*
Pylint
*
Git
Based on
`python:3-alpine`
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment