grab templates

This commit is contained in:
Manuel Romero
2019-12-10 12:10:13 +01:00
parent d53ca681c1
commit 69461ddcd5
4 changed files with 16 additions and 1 deletions

1
.gitignore vendored
View File

@@ -43,4 +43,5 @@ Thumbs.db
scenarios_templates/azqmi-qseok/bin
.vscode/
server/scenarios_templates*
server/az-tf-templates

5
init-templates.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
branch=master
rm -fr ./server/az-tf-templates
git clone -b $branch git@gitlab.com:qmi/qmi-cloud-scenarios.git ./server/az-tf-templates

View File

@@ -12,7 +12,7 @@ module.exports = function(job){
const logFile = path.resolve(__dirname, 'proc-logs', 'provision', `${job.data.id}.log`);
const scenarioPath = path.join(PROJECT_PATH, '..', 'qmi-cloud-provisions', `${job.data.scenario}_${job.data.id}`);
const templatePath = path.join(PROJECT_PATH, 'server', 'scenarios_templates', job.data.scenario);
const templatePath = path.join(PROJECT_PATH, 'server', 'az-tf-templates', job.data.scenario);
db.provision.update({
"id":job.data.id,

9
update-templates.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
branch=master
cd ./server/az-tf-templates
git checkout master
git checkout .
git pull origin $branch
cd ..
cd ..