Prechádzať zdrojové kódy

Update .gitlab-ci.yml

Guillermo Espinoza 5 rokov pred
rodič
commit
9cf2d23062
1 zmenil súbory, kde vykonal 0 pridanie a 6 odobranie
  1. 0 6
      .gitlab-ci.yml

+ 0 - 6
.gitlab-ci.yml

@@ -3,17 +3,11 @@ build_branch:
     variables:
       GIT_STRATEGY: clone
     script:
-      #- chmod 0600 keys/*
-      #- eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
       - ssh-keyscan -p 222 -t rsa gogs.infra.flowdat.com >> ~/.ssh/known_hosts
-      - cat ~/.ssh/known_hosts
-      - chmod 0600 keys/* && eval $(ssh-agent) && ssh-add keys/gogs.drone.id_rsa && ssh -v git@gogs.infra.flowdat.com -p222
       - 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
       - 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
     only:
       - pushes
       - branches