From 81aa2f06294d7c48c7bfd1f1dc1409012b9ffcd0 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sat, 12 Nov 2022 15:19:31 +0300 Subject: [PATCH] push-fix --- .gitlab-ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 454e4634..94f29076 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,17 @@ --- -image: dokku/ci-docker-image - stages: - deploy variables: - GIT_DEPTH: 0 + APP_NAME: discoursio-api deploy: + image: ilyasemenov/gitlab-ci-git-push stage: deploy + environment: + name: production + url: https://testapi.discours.io only: - - main - variables: - # specify the `main` branch as the remote branch to push to - BRANCH: main - GIT_REMOTE_URL: ssh://dokku@staging.discours.io:22/discoursio-api - script: dokku-deploy - after_script: [dokku-unlock] + - master + script: + - git-push ssh://dokku@testapi.discours.io:22/$APP_NAME