Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cp_video_dokku
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Dzehil
cp_video_dokku
Commits
38e6ea83
Commit
38e6ea83
authored
Mar 20, 2025
by
Alexandr Dzehil
😎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change ci file
parent
c549304f
Pipeline
#7124
failed with stage
in 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
14 deletions
+27
-14
.gitlab-ci.yml
.gitlab-ci.yml
+26
-11
Procfile
Procfile
+1
-3
No files found.
.gitlab-ci.yml
View file @
38e6ea83
image
:
dokku/ci-docker-image
stages
:
-
deploy
variables
:
GIT_DEPTH
:
0
APP_NAME
:
cp-video
APP_URL
:
137.184.39.49
deploy
:
stage
:
deploy
script
:
-
mkdir -p ~/.ssh
-
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
-
chmod 600 ~/.ssh/id_rsa
-
ssh-keyscan ваш_сервер_IP >> ~/.ssh/known_hosts
-
git remote add dokku root@137.184.39.49:cp-video
-
git push dokku main
-
ssh root@137.184.39.49 "dokku ps:scale cp-video web=1 worker=2 beat=1"
environment
:
name
:
stages
url
:
https://clutchpoints-video-test.4taps.me/
tags
:
-
dokku
only
:
-
main
-
dev
variables
:
GIT_REMOTE_URL
:
ssh://dokku@${APP_URL}:22/${APP_NAME}
DOKKU_DEPLOY_BRANCH
:
dev
before_script
:
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
script
:
-
dokku-deploy
-
ssh dokku@${APP_URL} ps:restart ${APP_NAME}
after_script
:
-
dokku-unlock
\ No newline at end of file
Procfile
View file @
38e6ea83
web: gunicorn cp_video.wsgi:application
worker: celery -A cp_video worker -l INFO
beat: celery -A cp_video beat
release: django-admin migrate --no-input && django-admin collectstatic --no-input
release: django-admin migrate --no-input && django-admin collectstatic --no-input && dokku ps:scale sites beat=1 worker=1
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment