build debug

This commit is contained in:
bniwredyc 2023-03-28 16:39:31 +02:00
parent 68f648f254
commit cd68d0099f

View File

@ -4,9 +4,10 @@ stages:
variables: variables:
APP_NAME: discoursio-api APP_NAME: discoursio-api
SERVER: v2.discours.io
deploy: deploy:
image: ilyasemenov/gitlab-ci-git-push image: alpine
stage: deploy stage: deploy
environment: environment:
name: production name: production
@ -15,6 +16,8 @@ deploy:
- main - main
script: script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- touch ~/.ssh/known_hosts - ssh-keyscan -t rsa $SERVER >> ~/.ssh/known_hosts
- ssh-keyscan -t rsa v2.discours.io >> ~/.ssh/known_hosts - echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
- git-push ssh://dokku@v2.discours.io:22/$APP_NAME - chmod 0400 ~/.ssh/id_rsa
- git remote add dokku dokku@$SERVER:$APP_NAME
- git push dokku