.build_docker: image: 'docker:19.03.11' services: - docker:19.03.11-dind variables: # Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled DOCKER_HOST: tcp://docker:2376 DOCKER_TLS_CERTDIR: "/certs" stage: .pre before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - echo ${DOCKERFILE} - cd ${DOCKERFILE} - docker build -t ${DOCKERREPO} . - docker push ${DOCKERREPO} when: manual docker build:debian_bullseye: extends: .build_docker variables: DOCKERFILE: dockerfiles/debian_bullseye/ DOCKERREPO: registry.gitlab.com/ganciaux/slides:debian_bullseye # docker build:ubuntu_20_04: # extends: .build_docker # variables: # DOCKERFILE: dockerfiles/ubuntu:20.04/ # DOCKERREPO: registry.gitlab.com/ganciaux/slides:ubuntu_20_04 .tests: stage: test script: - poetry install - poetry update - poetry run pytest --junitxml=report.xml artifacts: reports: junit: report.xml # test:ubuntu_20_04: # image: registry.gitlab.com/ganciaux/slides:ubuntu_20_04 # extends: # - .tests test:debian_bullseye: image: registry.gitlab.com/ganciaux/slides:debian_bullseye extends: - .tests