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
d657c9a3
Commit
d657c9a3
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Revert "docker build"
This reverts commit
7098a6d8
parent
7098a6d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Revert "docker build"
Pipeline
#3216
passed
4 years ago
Stage: Build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-13
31 additions, 13 deletions
.gitlab-ci.yml
with
31 additions
and
13 deletions
.gitlab-ci.yml
+
31
−
13
View file @
d657c9a3
image
:
python:latest
services
:
-
postgres:latest
variables
:
CONTAINER_IMAGE
:
rlacko58/kszkepzes-backend:0.2
POSTGRES_DB
:
database_name
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
:
-
Build image
-
Build
Flake8
:
stage
:
Build
script
:
-
flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,venv
docker build
:
stage
:
Build image
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
Test
:
stage
:
Build
variables
:
DATABASE_URL
:
"
postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
SECRET_KEY
:
"
secret"
AUTHSCH_KEY
:
"
secret"
AUTHSCH_SECRET
:
"
secret"
script
:
-
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
-
python src/manage.py test
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