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:
- docker:dind
variables:
DEPENDENCIES_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/image:latest
STORAGE_DRIVER: vfs # for buildah
REGISTRY_AUTH_FILE: /root/auth.json
before_script:
- docker login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
after_script:
- 'docker logout $CI_REGISTRY'
build-image:
stage: build #and stage
build_image:
stage: build
image: tomkukral/buildah
before_script:
- podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
script:
- docker pull jupyter/tensorflow-notebook
- docker build -t gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image .
- docker push gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image
- buildah bud --format docker -t ${DEPENDENCIES_IMAGE_NAME} .
- buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
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