From 48295a5491be764dad3b9f7043cf15870f2218f5 Mon Sep 17 00:00:00 2001 From: Souhaila Noor Date: Mon, 8 Nov 2021 13:50:47 -0600 Subject: [PATCH] added abs paths and add sleep time --- .gitlab/.gitlab-ci.yml | 1 + .gitlab/configureFeatureBase.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 8c1d2d0e4..bed04357b 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -214,6 +214,7 @@ deploy node for linux amd64: - scp -o StrictHostKeyChecking=no -i gitlab-featurebase-dev.pem featurebase_linux_amd64 ec2-user@$PUBLIC_IP:. - scp -o StrictHostKeyChecking=no -i gitlab-featurebase-dev.pem .gitlab/featurebase.conf .gitlab/featurebase.service ec2-user@$PUBLIC_IP:. - aws ec2 associate-iam-instance-profile --instance-id $INSTANCE_ID --iam-instance-profile Name=featurebase-dev-ssm + - sleep 120 needs: job: build for linux amd64 artifacts: diff --git a/.gitlab/configureFeatureBase.json b/.gitlab/configureFeatureBase.json index 569b6d0bd..6afd135d9 100644 --- a/.gitlab/configureFeatureBase.json +++ b/.gitlab/configureFeatureBase.json @@ -2,9 +2,9 @@ "Parameters": { "commands": [ "#!/bin/bash", - "mv featurebase_linux_amd64 /usr/local/bin/", - "mv featurebase.conf /etc/", - "mv featurebase.service /etc/systemd/system/", + "mv /home/ec2-user/featurebase_linux_amd64 /usr/local/bin/featurebase", + "mv /home/ec2-user/featurebase.conf /etc/", + "mv /home/ec2-user/featurebase.service /etc/systemd/system/", "adduser molecula", "sudo mkdir /var/log/molecula", "sudo chown molecula /var/log/molecula",