You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
780 B

  1. image: registry.gitlab.com/markuman/dev:3.7.0
  2. variables:
  3. DOCKER_DRIVER: overlay
  4. DOCKER_HOST: tcp://docker:2375/
  5. stages:
  6. - build
  7. build:
  8. stage: build
  9. tags:
  10. - docker
  11. only:
  12. - dev
  13. services:
  14. - docker:dind
  15. script:
  16. - docker build -t registry.gitlab.com/markuman/firefox-headless:latest .
  17. - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
  18. - docker push registry.gitlab.com/markuman/firefox-headless:latest
  19. build:
  20. stage: build
  21. tags:
  22. - docker
  23. only:
  24. - master
  25. services:
  26. - docker:dind
  27. script:
  28. - docker build -t registry.gitlab.com/markuman/firefox-headless:58 .
  29. - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
  30. - docker push registry.gitlab.com/markuman/firefox-headless:58