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
b203779e
Commit
b203779e
authored
Mar 20, 2025
by
Alexandr Dzehil
😎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change ci file
parent
b6e408e5
Pipeline
#7128
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
.gitlab-ci.yml
.gitlab-ci.yml
+6
-10
No files found.
.gitlab-ci.yml
View file @
b203779e
...
...
@@ -21,18 +21,14 @@ deploy:
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
-
ssh-keyscan -H ${APP_URL} >> ~/.ssh/known_hosts
-
chmod 6
44 ~/.ssh/known_hosts
-
echo
"StrictHostKeyChecking no" >
> ~/.ssh/config
-
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
-
chmod 6
00 ~/.ssh/id_rsa
-
echo
-e "Host ${APP_URL}\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile=/dev/null"
> ~/.ssh/config
-
chmod 600 ~/.ssh/config
script
:
-
dokku-deploy
-
dokku-deploy
||
true
after_script
:
-
|
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
ssh dokku@${APP_URL} apps:unlock ${APP_NAME} || true
\ No newline at end of file
-
sleep 5
-
ssh -i ~/.ssh/id_rsa -o ConnectTimeout=10 dokku@${APP_URL} apps:unlock ${APP_NAME} ||
true
\ 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