Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Linux presentation 2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Tóth Miklós Tibor
Linux presentation 2020
Commits
1ebd28b4
Verified
Commit
1ebd28b4
authored
4 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
ci/cd
parent
b787484c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#6511
failed
4 years ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+21
-0
21 additions, 0 deletions
.gitlab-ci.yml
.magic_ssh_config
+7
-0
7 additions, 0 deletions
.magic_ssh_config
with
28 additions
and
0 deletions
.gitlab-ci.yml
+
21
−
0
View file @
1ebd28b4
image
:
kroniak/ssh-client
stages
:
-
deploy
home
:
stage
:
deploy
before_script
:
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
echo "$SSH" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh/socket
-
chmod 700 ~/.ssh
-
cp .magic_ssh_config ~/.ssh/config
script
:
-
ssh mikewashere@centaur.sch.bme.hu "cp /afs/sch.bme.hu/home/mikewashere/.system/mikewashere.keytab /tmp/; kinit -k -t /tmp/mikewashere.keytab mikewashere; rm /tmp/mikewashere.keytab; aklog sch.bme.hu -k SCH.BME.HU"
-
ssh mikewashere@centaur.sch.bme.hu mkdir -p ~/public_html/linux
-
scp -R . mikewashere@centaur.sch.bme.hu:~/public_html/linux/.
only
:
refs
:
-
master
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.magic_ssh_config
0 → 100644
+
7
−
0
View file @
1ebd28b4
Host centaur.sch.bme.hu
StrictHostKeyChecking no
ControlMaster auto
ControlPersist yes
ControlPath ~/.ssh/socket/%r@%h:%p
RequestTTY yes
SecurityKeyProvider internal
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment