Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!1465
try chmoding key
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
try chmoding key
fix-ssh-weirds
into
main
Overview
1
Commits
13
Pipelines
13
Changes
1
1 unresolved thread
Hide all comments
Merged
Charlotte Hausman
requested to merge
fix-ssh-weirds
into
main
1 year ago
Overview
1
Commits
13
Pipelines
13
Changes
1
1 unresolved thread
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
9a452520
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9a452520
let's try this again...
· 9a452520
Charlotte Hausman
authored
1 year ago
ci/push-package.template.yml
+
3
−
3
Options
@@ -3,11 +3,11 @@
image
:
python:3.10-slim
before_script
:
-
mkdir -p ~/.ssh
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
chmod 400 "$SSH_PRIVATE_KEY"
-
ssh-add "$SSH_PRIVATE_KEY"
-
chmod 700 ~/.ssh
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > ~/.ssh/id_rsa
-
chmod 600 ~/.ssh/id_rsa
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\\n\\tStrictHostKeyChecking
no\\n\\n"
>
~/.ssh/config'
script
:
-
mkdir -p /home/ssa/bin
Loading