.gitlab-ci.yml 1.09 KB
Newer Older
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 35
variables:
  # Workaround a bug in Gitlab CI
  DOCKER_TLS_CERTDIR: ""

Docker build:
  stage: build
  tags:
    - dind
    - privileged
  variables:
    IMAGE_TAG: '1.37'
  services:
    - docker:dind
  script:
    - docker build ./rust-rav1e --build-arg IMAGE_TAG=$IMAGE_TAG
  only:
    - merge_requests

Latest stable Rust:
  stage: build
  tags:
    - dind
    - privileged
  variables:
    IMAGE_TAG: '1.37'
  services:
    - docker:dind
  script:
    - docker build -t $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG ./rust-rav1e --build-arg IMAGE_TAG=$IMAGE_TAG
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - docker push $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG
  only:
    - master

Minimum supported Rust:
36 37 38 39
  stage: build
  tags:
    - dind
    - privileged
Marvin Scholz's avatar
Marvin Scholz committed
40
  variables:
41
    IMAGE_TAG: '1.36'
42 43 44
  services:
    - docker:dind
  script:
45
    - docker build -t $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG ./rust-rav1e --build-arg IMAGE_TAG=$IMAGE_TAG
46
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
Marvin Scholz's avatar
Marvin Scholz committed
47
    - docker push $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG
48 49
  only:
    - master