Parcourir la source

Update .gitlab-ci.yml

Guillermo Espinoza il y a 5 ans
Parent
commit
ecc8bb7cfc
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      .gitlab-ci.yml

+ 4 - 4
.gitlab-ci.yml

@@ -6,11 +6,11 @@ build_branch:
       #- chmod 0600 keys/*
       #- eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
       - git fetch --tags
-      #- if git ls-remote --exit-code gogs &>/dev/null; then echo 'Existe el remote gogs' ; else git remote add gogs ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/php-docker-lib.git ; fi
-      - if git ls-remote --exit-code gogs &>/dev/null; then echo 'Existe el remote gogs' ; else git remote add gogs https://gogs.infra.flowdat.com/VendorSoftwareFlowdat3/php-docker-lib.git ; fi
+      - if git ls-remote --exit-code gogs &>/dev/null; then echo 'Existe el remote gogs' ; else git remote add gogs ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/php-docker-lib.git ; fi
+      #- if git ls-remote --exit-code gogs &>/dev/null; then echo 'Existe el remote gogs' ; else git remote add gogs https://gogs.infra.flowdat.com/VendorSoftwareFlowdat3/php-docker-lib.git ; fi
       - git checkout $CI_COMMIT_REF_NAME
-      #- chmod 0600 keys/* && eval $(ssh-agent) && ssh-add keys/gogs.drone.id_rsa && git push -u gogs $CI_COMMIT_REF_NAME --tags
-      - git push -u gogs $CI_COMMIT_REF_NAME --tags
+      - chmod 0600 keys/* && eval $(ssh-agent) && ssh-add keys/gogs.drone.id_rsa && git push -u gogs $CI_COMMIT_REF_NAME --tags
+      #- git push -u gogs $CI_COMMIT_REF_NAME --tags
     only:
       - pushes
       - branches