Commit 285f7782 authored by Alexandr Dzehil's avatar Alexandr Dzehil 😎

Change ci file

parent b319fcc7
image: ilyasemenov/gitlab-ci-git-push
image: dokku/ci-docker-image
stages:
- deploy
variables:
APP_NAME: cp-video
APP_URL: 137.184.39.49
GIT_DEPTH: 0
deploy:
image: ilyasemenov/gitlab-ci-git-push
stage: deploy
environment:
name: production
url: https://clutchpoints-video-test.4taps.me/
tags:
- dokku
only:
- dev
variables:
GIT_REMOTE_URL: ssh://dokku@137.184.39.49:22/cp-video
BRANCH: dev
script:
- echo "Текущая директория:"
- pwd
- echo "Список файлов в корневой директории контейнера:"
- ls -lah /
- echo "Поиск git-push в системе:"
- find / -name "git-push" 2>/dev/null
- echo "Переменная PATH:"
- echo $PATH
- echo "Поиск git-push в PATH:"
- command -v git-push || echo "git-push не найден в PATH"
- echo "Попытка запустить напрямую из /usr/bin или /usr/local/bin (если найден):"
- /usr/bin/git-push ssh://dokku@$APP_URL:22/$APP_NAME $BRANCH || echo "Не удалось запустить из /usr/bin"
- /usr/local/bin/git-push ssh://dokku@$APP_URL:22/$APP_NAME $BRANCH || echo "Не удалось запустить из /usr/local/bin"
script:
- dokku-deploy
after_script:
- dokku-unlock
\ 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