mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
removed ssh keys from shell script
This commit is contained in:
parent
184b935550
commit
8a77da0db9
2 changed files with 10 additions and 14 deletions
|
|
@ -200,5 +200,15 @@ build container fb:
|
|||
deploy node for linux amd64:
|
||||
stage: lint
|
||||
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
|
||||
before_script:
|
||||
- echo $AWS_SSH_PRIVATE_KEY > gitlab-featurebase-dev.pem
|
||||
- chmod 400 gitlab-featurebase-dev.pem
|
||||
- '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 -
|
||||
- chmod 700 /root/.ssh
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
- apt update && apt -y install jq
|
||||
script:
|
||||
- ./qa/scripts/deployNode.sh $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY $AWS_SSH_PRIVATE_KEY
|
||||
|
|
|
|||
|
|
@ -7,20 +7,6 @@ function configure_env() {
|
|||
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
|
||||
aws configure set region $REGION
|
||||
aws configure set aws_profile $PROFILE
|
||||
echo $AWS_SSH_PRIVATE_KEY > gitlab-featurebase-dev.pem
|
||||
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"
|
||||
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