Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
my_first_pipeline
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
priyaranjan.dr
my_first_pipeline
Commits
8dfd16e5
Commit
8dfd16e5
authored
Apr 06, 2021
by
priyaranjan.dr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
c44f20a7
Pipeline
#12136
failed
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
.gitlab-ci.yml
.gitlab-ci.yml
+31
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
8dfd16e5
stages
:
-build
-deploy
build
:
stage
:
build
image
:
alpine
before_script
:
-
apk add zip
script
:
-
mkdir public
-
touch public/index.html
-
echo "<h1>New Deployment<h1>" >> public/index.html
artifacts
:
paths
:
-
public.zip
deploy
:
stage
:
deploy
image
:
alpine
before_script
:
-
apk add openssh-client
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
script
:
-
scp -o StrictH0stKeyChecking=no public.zip administrator@192.168.3.183:/home/administrator/pdrkl
-
ssh -o StrictH0stKeyChecking=no public.zip administrator@192.168.3.183 "cd/home/administrator/pdrkl; touch foo.txt; unzip public.zip"
\ 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