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
ec894db2
Commit
ec894db2
authored
Apr 06, 2021
by
priyaranjan.dr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
168b71c5
Pipeline
#12163
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
.gitlab-ci.yml
.gitlab-ci.yml
+1
-24
No files found.
.gitlab-ci.yml
View file @
ec894db2
stages
:
-
build
-
deploy
build
:
stage
:
build
image
:
alpine
before_script
:
-
apk add zip
script
:
-
mkdir .public1
-
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"
-
sshpass -p "admin@123" ssh administrator@192.168.3.183
\ 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