grab templates
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
5
init-templates.sh
Executable 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
|
||||
@@ -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
9
update-templates.sh
Executable 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 ..
|
||||
Reference in New Issue
Block a user