.gitlab-ci.yml 1.12 KB
Newer Older
Mateusz Gniewkowski's avatar
Mateusz Gniewkowski committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
stages:
  - build

build_python2.7:
  stage: build
  image: docker:18.09.7
  only:
    - master
  services:
    - docker:18.09.7-dind
  before_script:
    - ''
  script:
    - docker build -t clarinpl/python:2.7 2.7/
    - echo $DOCKER_PASSWORD > pass.txt
    - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
    - rm pass.txt
    - docker push clarinpl/python:2.7
    
build_python3.6:
  stage: build
  image: docker:18.09.7
  only:
    - master
  services:
    - docker:18.09.7-dind
  before_script:
    - ''
  script:
    - docker build -t clarinpl/python:3.6 3.6/
    - echo $DOCKER_PASSWORD > pass.txt
    - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
    - rm pass.txt
    - docker push clarinpl/python:3.6
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

build_python3.8:
  stage: build
  image: docker:18.09.7
  only:
    - master
  services:
    - docker:18.09.7-dind
  before_script:
    - ''
  script:
    - docker build -t clarinpl/python:3.8 3.8/
    - echo $DOCKER_PASSWORD > pass.txt
    - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
    - rm pass.txt
    - docker push clarinpl/python:3.8