mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 23:31:03 +00:00
fix for ssh-add error
This commit is contained in:
parent
cceb173d5d
commit
53d7d6b91c
2 changed files with 6 additions and 4 deletions
|
|
@ -200,8 +200,5 @@ build container fb:
|
|||
deploy node for linux amd64:
|
||||
stage: lint
|
||||
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
|
||||
before_script:
|
||||
- apt update && apt -y install jq
|
||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
script:
|
||||
- ./qa/scripts/deployNode.sh $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY $AWS_SSH_PRIVATE_KEY
|
||||
|
|
|
|||
|
|
@ -11,10 +11,15 @@ function configure_env() {
|
|||
chmod 400 gitlab-featurebase-dev.pem
|
||||
|
||||
# set up ssh permissions
|
||||
which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
||||
eval `ssh-agent -s`
|
||||
mkdir -p ~/.ssh
|
||||
echo $AWS_SSH_PRIVATE_KEY | ssh-add -
|
||||
echo "${AWS_SSH_PRIVATE_KEY}" | ssh-add -
|
||||
chmod 700 /root/.ssh
|
||||
|
||||
# install jq
|
||||
apt update && apt -y install jq
|
||||
|
||||
}
|
||||
|
||||
function deploy_node() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue