CI: Actually push to correct repo.
authorlain <lain@soykaf.club>
Mon, 3 Jun 2019 09:47:10 +0000 (11:47 +0200)
committerlain <lain@soykaf.club>
Mon, 3 Jun 2019 10:00:33 +0000 (12:00 +0200)
.gitlab-ci.yml

index 939175218c277f3b2b694c6d2b7ca08d9094e15a..58c9de167cefb30b0c807d7792c468c5b5b34e54 100644 (file)
@@ -121,8 +121,7 @@ review_app:
     - (ssh -t dokku@pleroma.online -- postgres:create $(echo $CI_ENVIRONMENT_SLUG | sed -e 's/-/_/g')_db) || true
     - (ssh -t dokku@pleroma.online -- postgres:link $(echo $CI_ENVIRONMENT_SLUG | sed -e 's/-/_/g')_db "$CI_ENVIRONMENT_SLUG") || true
     - (ssh -t dokku@pleroma.online -- certs:add "$CI_ENVIRONMENT_SLUG" /home/dokku/server.crt /home/dokku/server.key) || true
-    - (git remote add dokku dokku@pleroma.online:$CI_ENVIRONMENT_SLUG) || true
-    - git push -f dokku $CI_COMMIT_SHA:refs/heads/master
+    - git push -f dokku@pleroma.online:$CI_ENVIRONMENT_SLUG $CI_COMMIT_SHA:refs/heads/master
 
 stop_review_app:
   image: alpine:3.9