Fix setting creds
This commit is contained in:
@@ -41,7 +41,9 @@ pipeline {
|
|||||||
sshCommand remote: remote, command: "ls -l"
|
sshCommand remote: remote, command: "ls -l"
|
||||||
|
|
||||||
// set AWS credentials
|
// set AWS credentials
|
||||||
sshScript remote: remote, script: "ansible/prepare-server.sh ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY}"
|
sshScript remote: remote, script: "ansible/prepare-server.sh"
|
||||||
|
sshCommand remote: remote, command: 'export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID'
|
||||||
|
sshCommand remote: remote, command: 'export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY'
|
||||||
|
|
||||||
sshCommand remote: remote, command: "ansible-playbook docker-and-compose.yaml"
|
sshCommand remote: remote, command: "ansible-playbook docker-and-compose.yaml"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ apt install ansible -y
|
|||||||
apt install python3-pip -y
|
apt install python3-pip -y
|
||||||
pip3 install boto3 botocore
|
pip3 install boto3 botocore
|
||||||
|
|
||||||
export AWS_ACCESS_KEY_ID=$1
|
# export AWS_ACCESS_KEY_ID=$1
|
||||||
export AWS_SECRET_ACCESS_KEY=$2
|
# export AWS_SECRET_ACCESS_KEY=$2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user