Commit a57bb249 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Update Docker build/CI

parent 09d15b12
Pipeline #3291 failed with stages
in 183 minutes and 41 seconds
*
!/requirements.txt
\ No newline at end of file
stages:
- docker
- build
- process
- deploy
Build Docker image:
stage: docker
only:
changes:
- Dockerfile.ci
- requirements.txt
refs:
- master
variables:
# Do not build Docker image from scheduled jobs.
# Cf https://gitlab.com/gitlab-org/gitlab/issues/27318#note_215688359
- $CI_PIPELINE_SOURCE == "push"
stage: build
rules:
- if: $CI_PIPELINE_SOURCE == "push"
changes:
- Dockerfile
- requirements.txt
when: always
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- 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.ci --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
- /kaniko/executor --cache --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
Download and generate data:
stage: build
stage: process
except:
- pushes
image: $CI_REGISTRY_IMAGE:latest
......
FROM python:3.7-buster
FROM python:3.9-slim-buster
LABEL maintainer="contact@jailbreak.paris"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment