Skip to content
Snippets Groups Projects
Commit d657c9a3 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Revert "docker build"

This reverts commit 7098a6d8
parent 7098a6d8
No related branches found
No related tags found
1 merge request!3Revert "docker build"
Pipeline #3216 passed
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
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