Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
7098a6d8
Commit
7098a6d8
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
docker build
parent
eb79fc15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3214
failed
4 years ago
Stage: Build image
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-31
13 additions, 31 deletions
.gitlab-ci.yml
with
13 additions
and
31 deletions
.gitlab-ci.yml
+
13
−
31
View file @
7098a6d8
image
:
python:latest
services
:
-
postgres:latest
variables
:
variables
:
POSTGRES_DB
:
database_name
CONTAINER_IMAGE
:
rlacko58/kszkepzes-backend:0.2
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
.cache/pip
-
venv/
before_script
:
-
python -V
-
python3 -m venv venv
-
source venv/bin/activate
-
pip install -r requirements/production.txt
stages
:
stages
:
-
Build
-
Build image
Flake8
:
stage
:
Build
script
:
-
flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,venv
Test
:
docker build
:
stage
:
Build
stage
:
Build image
variables
:
image
:
DATABASE_URL
:
"
postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
name
:
gcr.io/kaniko-project/executor:debug
SECRET_KEY
:
"
secret"
entrypoint
:
[
"
"
]
AUTHSCH_KEY
:
"
secret"
AUTHSCH_SECRET
:
"
secret"
script
:
script
:
-
python src/manage.py test
-
CRED=$(echo -n $DOCKERHUB_USER:$DOCKERHUB_PASSWORD | base64)
-
echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$CRED\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination https://index.docker.io/v1/rlacko58/kszkepzes-backend
only
:
-
master
-
tags
This diff is collapsed.
Click to expand it.
Rafael László
@rlacko
mentioned in commit
d657c9a3
·
4 years ago
mentioned in commit
d657c9a3
mentioned in commit d657c9a397077f44a8f663a0fc99bd4e2e923cbd
Toggle commit list
Rafael László
@rlacko
mentioned in merge request
!3 (merged)
·
4 years ago
mentioned in merge request
!3 (merged)
mentioned in merge request !3
Toggle commit list
Rafael László
@rlacko
mentioned in commit
3de79cdf
·
4 years ago
mentioned in commit
3de79cdf
mentioned in commit 3de79cdfa14fc5789b4774cd993236a6f1c7703c
Toggle commit list
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