.drone.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. services:
  2. selenium:
  3. image: selenium/standalone-firefox-debug:3.1
  4. docker:
  5. image: docker:17.10-dind
  6. privileged: true
  7. command: [ "--storage-driver=vfs", "--tls=false" ]
  8. pipeline:
  9. docker_installer:
  10. environment:
  11. - DIR_INSTALL=/opt/installer
  12. repo : docker.infra.flowdat.com/fd3/installer
  13. image: plugins/docker
  14. email: luciano@interlink.com.ar
  15. registry: docker.infra.flowdat.com
  16. dockerfile: tools/Dockerfile
  17. build_args:
  18. - DIR_INSTALL=/opt/installer
  19. context: tools/
  20. tag:
  21. - latest
  22. when:
  23. event: [push]
  24. installer_branch:
  25. image: docker.infra.flowdat.com/fd3/sf-php:latest
  26. commands:
  27. - chmod 0600 keys/*
  28. - eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
  29. - cd tools
  30. - composer install --no-interaction --no-progress
  31. - php cmd.php make:tag:vendors repositories.ini ${DRONE_BRANCH} --branch=true
  32. when:
  33. event: [ push ]
  34. branch: v*
  35. installer_tag:
  36. image: docker.infra.flowdat.com/fd3/sf-php:latest
  37. commands:
  38. - chmod 0600 keys/*
  39. - eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
  40. - cd tools
  41. - composer install --no-interaction --no-progress
  42. - php cmd.php make:tag:vendors repositories.ini ${DRONE_TAG}
  43. when:
  44. event: [ tag ]
  45. #build:
  46. # image: debian:9.0
  47. # commands:
  48. # - echo "Acquire::http::Proxy \"http://200.50.168.30:3142\";" | tee /etc/apt/apt.conf.d/00aptproxy
  49. # - apt-get update && apt-get install -yq git curl imagemagick php-cli php-curl php-mbstring php-imagick php-xml
  50. # - which compare
  51. # - env
  52. # - pwd
  53. # - ls -lash
  54. # - cd behat/testScreenshotGalvez ; php ./vendor/bin/codecept run --steps tests/acceptance/
  55. #install:
  56. # image: docker.infra.flowdat.com/fd3/sf-php:latest
  57. # environment:
  58. # - DOCKER_HOST=tcp://0.0.0.0:2375
  59. # commands:
  60. # - apt-get update && apt-get install -yq php-gmp
  61. # - apt-get update && apt-get install -yq lsb-release time
  62. # - . /etc/os-release; echo $ID
  63. # - lsb_release -cs
  64. # - env
  65. # - php -v
  66. # - apt-get update && apt-get install -yq apt-transport-https ca-certificates curl gnupg2 software-properties-common
  67. # - curl -fsSL https://download.docker.com/linux/$ID/gpg | apt-key add -
  68. # - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$ID $(lsb_release -cs) stable"
  69. # - apt-get update && apt-cache madison docker-ce
  70. # - apt-get update && apt-get -yq install docker-ce=17.06.0~ce-0~debian
  71. # - apt-get update && apt-get install -yq python-pip
  72. # - docker --tls=false ps -a
  73. # - pip install docker-compose
  74. # - docker-compose -v
  75. # - echo "Hasta aqui es instalación de paquetes requeridos docker y docker-compose"
  76. # - cd tools
  77. # - chmod 0600 keys/bitbucket.id_rsa*
  78. # - eval $(ssh-agent) ; ssh-add keys/bitbucket.id_rsa
  79. # - composer install --no-interaction --no-progress -vvv
  80. # - rm -rf demo
  81. # - php cmd.php make:install demo
  82. # - ping bitbucket.org -c4
  83. # - cd demo
  84. # - php ../cmd.php get:source git.ini
  85. # - cat docker-compose.yml
  86. # - docker-compose config
  87. # - time docker-compose build
  88. # - docker-compose up -d
  89. # - docker-compose ps
  90. # - "curl -H 'Host: base.fd3.flowdat.com' 127.0.0.1"