浏览代码

Arreglo .drone.yml para que genere las imagenes por tag

Gabriel Gosparo 7 年之前
父节点
当前提交
3a8e382d38
共有 1 个文件被更改,包括 21 次插入38 次删除
  1. 21 38
      .drone.yml

+ 21 - 38
.drone.yml

@@ -9,7 +9,7 @@ services:
   amqp:
     image: rabbitmq:3-management
 pipeline:
- build:
+  build:
     image: docker.infra.flowdat.com/fd3/sf-php:latest
     environment:
       HOST_FTTH: ftth.test.fd3.flowdat.com
@@ -45,41 +45,24 @@ pipeline:
       - tail -f var/logs/*.log &
       - vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist
 
-docker:
- repo : docker.infra.flowdat.com/fd3/dhcp
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- username: drone
- password: 6hd2dLfL
- tag:
-  - latest
- when:
-  event: [pull_request, push, tag]
-  branch: [master]
+  docker:
+    repo : docker.infra.flowdat.com/fd3/dhcp
+    image: plugins/docker
+    email: luciano@interlink.com.ar
+    registry: docker.infra.flowdat.com
+    tag: 
+      - latest
+    when:
+      event: [push]
+      branch: [master]
 
-docker_version:
- repo : docker.infra.flowdat.com/fd3/dhcp
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- username: drone
- password: 6hd2dLfL
- tag:
-  - "${DRONE_BRANCH##v}"
- when:
-  event: [push]
-  branch: [v*]
-
-docker_version_tag:
- repo : docker.infra.flowdat.com/fd3/dhcp
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- username: drone
- password: 6hd2dLfL
- tag:
-  - "${DRONE_TAG##v}"
- when:
-  event: [tag]
-  branch: [v*]
+  docker_version_tag:
+    repo : docker.infra.flowdat.com/fd3/dhcp
+    image: plugins/docker
+    email: luciano@interlink.com.ar
+    registry: docker.infra.flowdat.com
+    tag:
+      - "${DRONE_TAG##v}"
+    when:
+      event: [tag]
+      branch: [v*]