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
624269f6
Commit
624269f6
authored
Feb 10, 2025
by
Alexandr Dzehil
😎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change ci file
parent
fae4fafc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
.gitlab-ci.yml
.gitlab-ci.yml
+28
-1
No files found.
.gitlab-ci.yml
View file @
624269f6
...
...
@@ -3,6 +3,33 @@ image: ilyasemenov/gitlab-ci-git-push
stages
:
-
deploy
before_script
:
##
## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image)
##
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
##
## Run ssh-agent (inside the build environment)
##
-
eval $(ssh-agent -s)
##
## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
## We're using tr to fix line endings which makes ed25519 keys work
## without extra base64 encoding.
## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556
##
-
echo "$SSH_PRIVATE_KEY"
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
##
## Create the SSH directory and give it the right permissions
##
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
variables
:
APP_NAME
:
cp-video
APP_URL
:
137.184.39.49
...
...
@@ -11,7 +38,7 @@ deploy:
image
:
ilyasemenov/gitlab-ci-git-push
stage
:
deploy
environment
:
name
:
production
name
:
stages
url
:
https://clutchpoints-video-test.4taps.me/
tags
:
-
dokku
...
...
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