Prechádzať zdrojové kódy

Agregado del paso de tags a gogs

Gabriel Gosparo 7 rokov pred
rodič
commit
c35fa2daa9
1 zmenil súbory, kde vykonal 17 pridanie a 2 odobranie
  1. 17 2
      .drone.yml

+ 17 - 2
.drone.yml

@@ -1,8 +1,23 @@
 pipeline:
-  build:
+  build_branch:
     image: docker.infra.flowdat.com/fd3/sf-php:latest
     commands:
       - chmod 0600 keys/*
       - eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
+      - git fetch --tags
       - git remote add gogs ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/MapBundle.git
-      - git push gogs master:${DRONE_BRANCH}
+      - git push gogs master:${DRONE_BRANCH} --tags
+    when:
+       event: [ push ]
+
+
+  build_tag:
+    image: docker.infra.flowdat.com/fd3/sf-php:latest
+    commands:
+      - chmod 0600 keys/*
+      - eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
+      - git fetch
+      - git remote add gogs ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/MapBundle.git
+      - git push gogs --tags
+    when:
+       event: [ tag ]