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}"
build-image:
stage: build #and stage
script: script:
- docker pull jupyter/tensorflow-notebook - buildah bud --format docker -t ${DEPENDENCIES_IMAGE_NAME} .
- docker build -t gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image . - buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
- docker push gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image after_script:
- podman logout "${CI_REGISTRY}"
only:
changes:
- 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