diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9fd074e02b00444a87f188f101dfe5d5cb836ed6..c330e9a49779dea68fc601d21a81fa53468d8a4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,3 +48,17 @@ deploy-test: - while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done # wait until an address is available to attach the floating ip - openstack server add floating ip $INSTANCE_ID $FLOATING_IP - echo "Done" + +publishgit-do: + stage: publish + only: + - tags + tags: [stable] + script: + - apt-get update + - apt-get install -y git + - (git remote -v | grep gith) || git remote add gith "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/eflows4hpc/data-logistics-service.git" + - git remote -v + - git show-ref + - export + - git push gith $CI_COMMIT_REF_NAME