.gitlab-ci.yml 654 Bytes
Newer Older
1 2
stages:
- build
3

4 5 6 7
variables:
  DEPENDENCIES_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/image:latest
  STORAGE_DRIVER: vfs # for buildah
  REGISTRY_AUTH_FILE: /root/auth.json
Nicolas Thiéry's avatar
Nicolas Thiéry committed
8

9 10 11 12 13
build_image:
  stage: build
  image: tomkukral/buildah
  before_script:
    - podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
Marco Leoni's avatar
Marco Leoni committed
14
  script:
15
    - buildah pull jupyter/tensorflow-notebook
16 17 18 19 20 21 22 23
    - 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/*