Commit be5a5ca4 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry

Attempt of image build by buildah

parent ddb968a3
image: docker:git stages:
- build
services: variables:
- docker:dind DEPENDENCIES_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/image:latest
STORAGE_DRIVER: vfs # for buildah
REGISTRY_AUTH_FILE: /root/auth.json
before_script: build_image:
- docker login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD $CI_REGISTRY stage: build
image: tomkukral/buildah
after_script: before_script:
- 'docker logout $CI_REGISTRY' - podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
stage: build #and stage
script: script:
- docker pull jupyter/tensorflow-notebook - buildah bud --format docker -t ${DEPENDENCIES_IMAGE_NAME} .
- docker build -t . - buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
- docker push after_script:
- podman logout "${CI_REGISTRY}"
- Dockerfile
- binder/*
Markdown is supported
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