Commit 72fc0a33 authored by Alexandr Dzehil's avatar Alexandr Dzehil 😎

Change ci file

parent d0fa1e44
Pipeline #7143 passed with stage
in 7 seconds
image: dokku/ci-docker-image image: ilyasemenov/gitlab-ci-git-push
stages: stages:
- deploy - deploy
variables: variables:
GIT_DEPTH: 0
APP_NAME: cp-video APP_NAME: cp-video
APP_URL: 137.184.39.49 APP_URL: 137.184.39.49
TRACE: "1" TRACE: "1"
GIT_REMOTE_URL: "dokku@137.184.39.49:cp-video"
deploy: deploy:
image: ilyasemenov/gitlab-ci-git-push
stage: deploy stage: deploy
environment: environment:
name: stages name: stages
...@@ -21,15 +20,5 @@ deploy: ...@@ -21,15 +20,5 @@ deploy:
- dev - dev
variables: variables:
BRANCH: dev BRANCH: dev
before_script:
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -H 137.184.39.49 >> ~/.ssh/known_hosts
script: script:
- echo "GIT_REMOTE_URL=${GIT_REMOTE_URL}" - git-push ssh://dokku@$APP_URL:22/$APP_NAME
- echo "BRANCH=${BRANCH}" \ No newline at end of file
- echo "commit_sha=$(git rev-parse HEAD)"
- dokku-deploy
after_script:
- dokku-unlock || true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment