@docupace/pipeline 1.0.2-3.test9 → 1.0.2-4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.23.test9",
3
+ "version": "1.0.24.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -7,16 +7,16 @@ import axios from 'axios';
7
7
  */
8
8
  export async function getVaultSecrets(vaultPath) {
9
9
  if (!vaultPath) {
10
- console.error("Error: VAULT_PATH is required.");
11
- throw new Error("VAULT_PATH is required.");
10
+ console.error('Error: VAULT_PATH is required.');
11
+ throw new Error('VAULT_PATH is required.');
12
12
  }
13
13
 
14
14
  const vaultToken = process.env.VAULT_TOKEN;
15
15
  const vaultAddr = process.env.VAULT_ADDR;
16
16
 
17
17
  if (!vaultToken || !vaultAddr) {
18
- console.error("Error: VAULT_TOKEN and VAULT_ADDR must be set.");
19
- throw new Error("VAULT_TOKEN and VAULT_ADDR must be set.");
18
+ console.error('Error: VAULT_TOKEN and VAULT_ADDR must be set.');
19
+ throw new Error('VAULT_TOKEN and VAULT_ADDR must be set.');
20
20
  }
21
21
 
22
22
  try {
@@ -38,8 +38,8 @@ export async function getVaultSecrets(vaultPath) {
38
38
  // console.log(`Secrets fetched successfully from Vault at ${JSON.stringify(data.data.data)})`);
39
39
  return data.data.data;
40
40
  } else {
41
- console.error("Error: Invalid JSON received from Vault.");
42
- throw new Error("Invalid JSON received from Vault.");
41
+ console.error('Error: Invalid JSON received from Vault.');
42
+ throw new Error('Invalid JSON received from Vault.');
43
43
  }
44
44
  } catch (error) {
45
45
  if (error.response) {
@@ -61,16 +61,16 @@ export async function getVaultSecrets(vaultPath) {
61
61
  */
62
62
  export async function updateVaultSecrets(vaultPath, secretData) {
63
63
  if (!vaultPath || !secretData) {
64
- console.error("Usage: updateVaultSecret(vaultPath, secretData)");
65
- throw new Error("Both vaultPath and secretData are required.");
64
+ console.error('Usage: updateVaultSecret(vaultPath, secretData)');
65
+ throw new Error('Both vaultPath and secretData are required.');
66
66
  }
67
67
 
68
68
  const vaultToken = process.env.VAULT_TOKEN;
69
69
  const vaultAddr = process.env.VAULT_ADDR;
70
70
 
71
71
  if (!vaultToken || !vaultAddr) {
72
- console.error("Error: VAULT_TOKEN and VAULT_ADDR must be set.");
73
- throw new Error("VAULT_TOKEN and VAULT_ADDR must be set.");
72
+ console.error('Error: VAULT_TOKEN and VAULT_ADDR must be set.');
73
+ throw new Error('VAULT_TOKEN and VAULT_ADDR must be set.');
74
74
  }
75
75
 
76
76
  try {
package/src/next/cli.js CHANGED
@@ -1,185 +1,185 @@
1
- #!/usr/bin/env node
2
-
3
- import { Command } from 'commander';
4
- import { pull } from './pull.js';
5
- import { sonar } from './sonar.js';
6
- import { publish } from './publish.js';
7
- import { deployFromSite } from './deploy.js';
8
- import { deployTemplate } from './deploy.js';
9
- import { copy } from './copy.js';
10
- import { vaultAddSiteData } from './vault.js';
11
- import { addApacheSite } from './apache.js';
12
- import { haproxySync } from './haproxy.js';
13
- import { connectClone } from './connect.js';
14
- import dotenv from 'dotenv';
15
-
16
- dotenv.config({ path: ['.env.pipeline.local', 'config/.env.pipeline.local'] });
17
-
18
- const program = new Command();
19
-
20
- import { $ } from 'zx';
21
- import { deployConnect, deployCore } from './jenkins.js';
22
- import { runPipeline } from './pipline.js';
23
-
24
- const GIT_SHA = (await $`git log --pretty=format:'%h' -n 1`).stdout.trim();
25
-
26
- program
27
- .command('pull <imageName>')
28
- .description('Pull a Docker image from the registry')
29
- .action(async (imageName) => {
30
- await pull(imageName);
31
- });
32
-
33
- program
34
- .command('sonar')
35
- .description('Run Sonar analysis')
36
- .action(async () => {
37
- await sonar(GIT_SHA);
38
- });
39
-
40
- program
41
- .command('addApacheSite')
42
- .description('Add site to apache')
43
- .action(async () => {
44
- await addApacheSite();
45
- });
46
-
47
- program
48
- .command('connectClone')
49
- .description('Clone connect site')
50
- .action(async () => {
51
- await connectClone();
52
- });
53
-
54
- program
55
- .command('haproxySync')
56
- .description('Sync haproxy config')
57
- .action(async () => {
58
- await haproxySync();
59
- });
60
-
61
- program
62
- .command('vaultAddSiteData')
63
- .description('Add m2m auth0 data to vault')
64
- .requiredOption('-s, --site-name <siteName>', 'Site name')
65
- .requiredOption(
66
- '-p, --site-config-remote-path <siteConfigRemotePath>',
67
- 'Site Config Remote Path',
68
- )
69
- .action(async (options) => {
70
- const { siteName, siteConfigRemotePath } = options;
71
- await vaultAddSiteData(siteName, siteConfigRemotePath);
72
- });
73
-
74
- program
75
- .command('publish')
76
- .description('Publish a Docker image')
77
- .action(async () => {
78
- await publish(GIT_SHA);
79
- });
80
-
81
- program
82
- .command('deploy-from-site')
83
- .description('Deploy an application for a specific site')
84
- .requiredOption('-f, --from-env <fromEnv>', 'Source environment')
85
- .requiredOption('-t, --to-env <toEnv>', 'Target environment')
86
- .requiredOption('-F, --from-site <fromSite>', 'Source site')
87
- .requiredOption('-T, --to-site <toSite>', 'Target site')
88
- .option('-c, --deploy-core <deployCore>', 'Deploy Core', 'false')
89
- .option('-c, --deploy-connect <deployConnect>', 'Deploy Connect', 'false')
90
- .action(async (options) => {
91
- const { fromEnv, fromSite, toEnv, toSite, deployCore, deployConnect } =
92
- options;
93
- await deployFromSite(
94
- fromEnv,
95
- fromSite,
96
- toEnv,
97
- toSite,
98
- deployCore,
99
- deployConnect,
100
- );
101
- });
102
-
103
- program
104
- .command('deployTemplate <site>')
105
- .description('Deploy an application for a specific site')
106
- .action(async (site) => {
107
- await deployTemplate(site);
108
- });
109
-
110
- program
111
- .command('deploy-core <env> <site>')
112
- .description('Deploy Core')
113
- .option('-l, --liquibase <liquibase>', 'Application name', 'true')
114
- .option('-b, --branch <branch>', 'Branch', 'master')
115
- .action(async (env, site, options) => {
116
- await deployCore(env, site, options.liquibase, options.branch);
117
- });
118
-
119
- program
120
- .command('deploy-connect <env> <site>')
121
- .description('Deploy Core')
122
- .option('-l, --liquibase <liquibase>', 'Application name', 'true')
123
- .option('-b, --branch <branch>', 'Branch', 'master')
124
- .action(async (env, site, options) => {
125
- await deployConnect(env, site, options.liquibase, options.branch);
126
- });
127
-
128
- program
129
- .command('deploy-core-pipeline <env> <site>')
130
- .description('Deploy Core')
131
- .option('-l, --liquibase <liquibase>', 'Application name', 'true')
132
- .option('-b, --branch <branch>', 'Branch', 'master')
133
- .action(async (env, site, options) => {
134
- await runPipeline('site-deploy', 'deploy-core', 'main', {
135
- ENV: env,
136
- SITE: site,
137
- LIQUIBASE: options.liquibase,
138
- BRANCH: options.branch,
139
- });
140
- });
141
-
142
- program
143
- .command('copy')
144
- .description('Copy a Docker image between registries')
145
- .requiredOption('-a, --application <application>', 'Application name')
146
- .requiredOption('-f, --from-env <fromEnv>', 'Source environment')
147
- .requiredOption('-t, --to-env <toEnv>', 'Target environment')
148
- .requiredOption('-g, --tag <tag>', 'Image tag')
149
- .action(async (options) => {
150
- const { application, fromEnv, toEnv, tag } = options;
151
- await copy(application, fromEnv, toEnv, tag);
152
- });
153
-
154
- program
155
- .command('run-pipeline')
156
- .description('Trigger a pipeline by name')
157
- .requiredOption('-r, --repository <repository>', 'Repository name')
158
- .requiredOption('-p, --pipeline-name <pipelineName>', 'Pipeline name')
159
- .requiredOption('-b, --branch <branch>', 'Branch name')
160
- .option(
161
- '-v, --variables <key=value>',
162
- 'Pipeline variable as key=value pair',
163
- (value, previous) => {
164
- const [key, val] = value.split('=');
165
- if (!key || val === undefined) {
166
- throw new Error(`Invalid variable format: ${value}. Use key=value.`);
167
- }
168
- return { ...previous, [key]: val };
169
- },
170
- {},
171
- )
172
- .option('-w, --wait', 'Wait for the pipeline to complete', false) // Defaults to false
173
- .action(async (cmdObj) => {
174
- try {
175
- const { repository, pipelineName, branch, variables, wait } = cmdObj;
176
-
177
- // Call the triggerPipelineByName function
178
- await runPipeline(repository, pipelineName, branch, variables, wait);
179
- } catch (error) {
180
- console.error('Error triggering pipeline:', error.message);
181
- process.exit(1);
182
- }
183
- });
184
-
185
- program.parse(process.argv);
1
+ #!/usr/bin/env node
2
+
3
+ import { Command } from 'commander';
4
+ import { pull } from './pull.js';
5
+ import { sonar } from './sonar.js';
6
+ import { publish } from './publish.js';
7
+ import { deployFromSite } from './deploy.js';
8
+ import { deployTemplate } from './deploy.js';
9
+ import { copy } from './copy.js';
10
+ import { vaultAddSiteData } from './vault.js';
11
+ import { addApacheSite } from './apache.js';
12
+ import { haproxySync } from './haproxy.js';
13
+ import { connectClone } from './connect.js';
14
+ import dotenv from 'dotenv';
15
+
16
+ dotenv.config({ path: ['.env.pipeline.local', 'config/.env.pipeline.local'] });
17
+
18
+ const program = new Command();
19
+
20
+ import { $ } from 'zx';
21
+ import { deployConnect, deployCore } from './jenkins.js';
22
+ import { runPipeline } from './pipline.js';
23
+
24
+ const GIT_SHA = (await $`git log --pretty=format:'%h' -n 1`).stdout.trim();
25
+
26
+ program
27
+ .command('pull <imageName>')
28
+ .description('Pull a Docker image from the registry')
29
+ .action(async (imageName) => {
30
+ await pull(imageName);
31
+ });
32
+
33
+ program
34
+ .command('sonar')
35
+ .description('Run Sonar analysis')
36
+ .action(async () => {
37
+ await sonar(GIT_SHA);
38
+ });
39
+
40
+ program
41
+ .command('addApacheSite')
42
+ .description('Add site to apache')
43
+ .action(async () => {
44
+ await addApacheSite();
45
+ });
46
+
47
+ program
48
+ .command('connectClone')
49
+ .description('Clone connect site')
50
+ .action(async () => {
51
+ await connectClone();
52
+ });
53
+
54
+ program
55
+ .command('haproxySync')
56
+ .description('Sync haproxy config')
57
+ .action(async () => {
58
+ await haproxySync();
59
+ });
60
+
61
+ program
62
+ .command('vaultAddSiteData')
63
+ .description('Add m2m auth0 data to vault')
64
+ .requiredOption('-s, --site-name <siteName>', 'Site name')
65
+ .requiredOption(
66
+ '-p, --site-config-remote-path <siteConfigRemotePath>',
67
+ 'Site Config Remote Path',
68
+ )
69
+ .action(async (options) => {
70
+ const { siteName, siteConfigRemotePath } = options;
71
+ await vaultAddSiteData(siteName, siteConfigRemotePath);
72
+ });
73
+
74
+ program
75
+ .command('publish')
76
+ .description('Publish a Docker image')
77
+ .action(async () => {
78
+ await publish(GIT_SHA);
79
+ });
80
+
81
+ program
82
+ .command('deploy-from-site')
83
+ .description('Deploy an application for a specific site')
84
+ .requiredOption('-f, --from-env <fromEnv>', 'Source environment')
85
+ .requiredOption('-t, --to-env <toEnv>', 'Target environment')
86
+ .requiredOption('-F, --from-site <fromSite>', 'Source site')
87
+ .requiredOption('-T, --to-site <toSite>', 'Target site')
88
+ .option('-c, --deploy-core <deployCore>', 'Deploy Core', 'false')
89
+ .option('-C, --deploy-connect <deployConnect>', 'Deploy Connect', 'false')
90
+ .action(async (options) => {
91
+ const { fromEnv, fromSite, toEnv, toSite, deployCore, deployConnect } =
92
+ options;
93
+ await deployFromSite(
94
+ fromEnv,
95
+ fromSite,
96
+ toEnv,
97
+ toSite,
98
+ deployCore,
99
+ deployConnect,
100
+ );
101
+ });
102
+
103
+ program
104
+ .command('deployTemplate <site>')
105
+ .description('Deploy an application for a specific site')
106
+ .action(async (site) => {
107
+ await deployTemplate(site);
108
+ });
109
+
110
+ program
111
+ .command('deploy-core <env> <site>')
112
+ .description('Deploy Core')
113
+ .option('-l, --liquibase <liquibase>', 'Application name', 'true')
114
+ .option('-b, --branch <branch>', 'Branch', 'master')
115
+ .action(async (env, site, options) => {
116
+ await deployCore(env, site, options.liquibase, options.branch);
117
+ });
118
+
119
+ program
120
+ .command('deploy-connect <env> <site>')
121
+ .description('Deploy Core')
122
+ .option('-l, --liquibase <liquibase>', 'Application name', 'true')
123
+ .option('-b, --branch <branch>', 'Branch', 'master')
124
+ .action(async (env, site, options) => {
125
+ await deployConnect(env, site, options.liquibase, options.branch);
126
+ });
127
+
128
+ program
129
+ .command('deploy-core-pipeline <env> <site>')
130
+ .description('Deploy Core')
131
+ .option('-l, --liquibase <liquibase>', 'Application name', 'true')
132
+ .option('-b, --branch <branch>', 'Branch', 'master')
133
+ .action(async (env, site, options) => {
134
+ await runPipeline('site-deploy', 'deploy-core', 'main', {
135
+ ENV: env,
136
+ SITE: site,
137
+ LIQUIBASE: options.liquibase,
138
+ BRANCH: options.branch,
139
+ });
140
+ });
141
+
142
+ program
143
+ .command('copy')
144
+ .description('Copy a Docker image between registries')
145
+ .requiredOption('-a, --application <application>', 'Application name')
146
+ .requiredOption('-f, --from-env <fromEnv>', 'Source environment')
147
+ .requiredOption('-t, --to-env <toEnv>', 'Target environment')
148
+ .requiredOption('-g, --tag <tag>', 'Image tag')
149
+ .action(async (options) => {
150
+ const { application, fromEnv, toEnv, tag } = options;
151
+ await copy(application, fromEnv, toEnv, tag);
152
+ });
153
+
154
+ program
155
+ .command('run-pipeline')
156
+ .description('Trigger a pipeline by name')
157
+ .requiredOption('-r, --repository <repository>', 'Repository name')
158
+ .requiredOption('-p, --pipeline-name <pipelineName>', 'Pipeline name')
159
+ .requiredOption('-b, --branch <branch>', 'Branch name')
160
+ .option(
161
+ '-v, --variables <key=value>',
162
+ 'Pipeline variable as key=value pair',
163
+ (value, previous) => {
164
+ const [key, val] = value.split('=');
165
+ if (!key || val === undefined) {
166
+ throw new Error(`Invalid variable format: ${value}. Use key=value.`);
167
+ }
168
+ return { ...previous, [key]: val };
169
+ },
170
+ {},
171
+ )
172
+ .option('-w, --wait', 'Wait for the pipeline to complete', false) // Defaults to false
173
+ .action(async (cmdObj) => {
174
+ try {
175
+ const { repository, pipelineName, branch, variables, wait } = cmdObj;
176
+
177
+ // Call the triggerPipelineByName function
178
+ await runPipeline(repository, pipelineName, branch, variables, wait);
179
+ } catch (error) {
180
+ console.error('Error triggering pipeline:', error.message);
181
+ process.exit(1);
182
+ }
183
+ });
184
+
185
+ program.parse(process.argv);
@@ -1,84 +1,84 @@
1
- export const environments = ['dev', 'qa', 'uat', 'stage', 'prod'];
2
-
3
- export const environmentConfig = {
4
- dev: {
5
- newUrl: (site) => `https://${site}.dev.dpai.tech`,
6
- oldUrl: (site) => `https://www.dev.docupaceinc.com/${site}`,
7
- docupaceHost: () => 'www.dev.docupaceinc.com',
8
- },
9
- qa: {
10
- newUrl: (site) => `https://${site}.qa.dpai.tech`,
11
- oldUrl: (site) => `https://www.preprod.docupaceinc.com/${site}`,
12
- docupaceHost: () => 'www.preprod.docupaceinc.com',
13
- },
14
- uat: {
15
- newUrl: (site) => `https://${site}.qa.dpai.tech`,
16
- oldUrl: (site) => `https://www2.paperout.com/${site}_uat`,
17
- docupaceHost: () => 'www2.paperout.com',
18
- },
19
- stage: {
20
- newUrl: (site) => `https://${site}.stage.dpai.tech`,
21
- oldUrl: (site) => `https://www2.paperout.com/${site}_staging`,
22
- docupaceHost: () => 'www2.paperout.com',
23
- },
24
- prod: {
25
- newUrl: (site) => `https://${site}.dpai.tech`,
26
- oldUrl: (site) => `https://www2.paperout.com/${site}`,
27
- docupaceHost: () => 'www2.paperout.com',
28
- },
29
- };
30
-
31
- export const appInfo = {
32
- 'graphql-server': {
33
- repositoryName: 'docupace-graphql-server',
34
- deployAttributes: [
35
- 'image.tag',
36
- 'graphqlServer.siteConfigRemoteBranch',
37
- 'graphqlServer.standardConfigRemoteBranch',
38
- ],
39
- },
40
- ui: {
41
- repositoryName: 'docupace-ui-main',
42
- deployAttributes: ['image.tag'],
43
- },
44
- };
45
-
46
- export const getEnvInfo = () => {
47
- const envInfo = Object.fromEntries(
48
- environments.map((env) => [
49
- env,
50
- {
51
- jfrog: {
52
- username: process.env[`JF_REGISTRY_${env.toUpperCase()}_USERNAME`],
53
- password: process.env[`JF_REGISTRY_${env.toUpperCase()}_PASSWORD`],
54
- },
55
- },
56
- ]),
57
- );
58
-
59
- return envInfo;
60
- };
61
-
62
- export const getBitbucketInfo = () => {
63
- return {
64
- username: process.env.BITBUCKET_USERNAME,
65
- password: process.env.BITBUCKET_APP_PASSWORD,
66
- workspace: 'dp-cloud',
67
- };
68
- };
69
-
70
- export const getRepUrl = (repoName) => {
71
- const { username, password, workspace } = getBitbucketInfo();
72
- return `https://${username}:${password}@bitbucket.org/${workspace}/${repoName}.git`;
73
- };
74
-
75
- export const jfRegistryUrl = 'registry.paperout.com';
76
-
77
- export const getVaultSecretsConfigs = (site) => {
78
- return {
79
- commonSecretsPath: 'secret/data/common/config',
80
- siteCommonSecretsPath: `secret/data/${site}/common/config`,
81
- graphqlServerSecretsPath: `secret/data/${site}/graphql-server/config`,
82
- uiSecretsPath: `secret/data/${site}/ui/config`
83
- }
84
- };
1
+ export const environments = ['dev', 'qa', 'uat', 'stage', 'prod'];
2
+
3
+ export const environmentConfig = {
4
+ dev: {
5
+ newUrl: (site) => `https://${site}.dev.dpai.tech`,
6
+ oldUrl: (site) => `https://www.dev.docupaceinc.com/${site}`,
7
+ docupaceHost: () => 'www.dev.docupaceinc.com',
8
+ },
9
+ qa: {
10
+ newUrl: (site) => `https://${site}.qa.dpai.tech`,
11
+ oldUrl: (site) => `https://www.preprod.docupaceinc.com/${site}`,
12
+ docupaceHost: () => 'www.preprod.docupaceinc.com',
13
+ },
14
+ uat: {
15
+ newUrl: (site) => `https://${site}.qa.dpai.tech`,
16
+ oldUrl: (site) => `https://www2.paperout.com/${site}_uat`,
17
+ docupaceHost: () => 'www2.paperout.com',
18
+ },
19
+ stage: {
20
+ newUrl: (site) => `https://${site}.stage.dpai.tech`,
21
+ oldUrl: (site) => `https://www2.paperout.com/${site}_staging`,
22
+ docupaceHost: () => 'www2.paperout.com',
23
+ },
24
+ prod: {
25
+ newUrl: (site) => `https://${site}.dpai.tech`,
26
+ oldUrl: (site) => `https://www2.paperout.com/${site}`,
27
+ docupaceHost: () => 'www2.paperout.com',
28
+ },
29
+ };
30
+
31
+ export const appInfo = {
32
+ 'graphql-server': {
33
+ repositoryName: 'docupace-graphql-server',
34
+ deployAttributes: [
35
+ 'image.tag',
36
+ 'graphqlServer.siteConfigRemoteBranch',
37
+ 'graphqlServer.standardConfigRemoteBranch',
38
+ ],
39
+ },
40
+ ui: {
41
+ repositoryName: 'docupace-ui-main',
42
+ deployAttributes: ['image.tag'],
43
+ },
44
+ };
45
+
46
+ export const getEnvInfo = () => {
47
+ const envInfo = Object.fromEntries(
48
+ environments.map((env) => [
49
+ env,
50
+ {
51
+ jfrog: {
52
+ username: process.env[`JF_REGISTRY_${env.toUpperCase()}_USERNAME`],
53
+ password: process.env[`JF_REGISTRY_${env.toUpperCase()}_PASSWORD`],
54
+ },
55
+ },
56
+ ]),
57
+ );
58
+
59
+ return envInfo;
60
+ };
61
+
62
+ export const getBitbucketInfo = () => {
63
+ return {
64
+ username: process.env.BITBUCKET_USERNAME,
65
+ password: process.env.BITBUCKET_APP_PASSWORD,
66
+ workspace: 'dp-cloud',
67
+ };
68
+ };
69
+
70
+ export const getRepUrl = (repoName) => {
71
+ const { username, password, workspace } = getBitbucketInfo();
72
+ return `https://${username}:${password}@bitbucket.org/${workspace}/${repoName}.git`;
73
+ };
74
+
75
+ export const jfRegistryUrl = 'registry.paperout.com';
76
+
77
+ export const getVaultSecretsConfigs = (site) => {
78
+ return {
79
+ commonSecretsPath: 'secret/data/common/config',
80
+ siteCommonSecretsPath: `secret/data/${site}/common/config`,
81
+ graphqlServerSecretsPath: `secret/data/${site}/graphql-server/config`,
82
+ uiSecretsPath: `secret/data/${site}/ui/config`,
83
+ };
84
+ };
@@ -124,6 +124,12 @@ export async function connectClone() {
124
124
  // Execute the shell command
125
125
  const result =
126
126
  await $`cd ${cloneFrom} && bash dock.sh clone ${connectToEnv} ${process.env.BUILD_SITE} ${process.env.IMAGE_VERSION}`;
127
+ await $`cd ${cloneTo} && git checkout master && git pull --ff-only`;
128
+ await $`cd ${cloneTo} && git remote -v`;
129
+ await $`cd ${cloneTo} && git branch`;
130
+ await $`cd ${cloneTo} && git status`;
131
+ await $`cd ${cloneTo} && git add . ../sites.sh`;
132
+
127
133
  console.log('Command succeeded:');
128
134
  console.log('stdout:', result.stdout); // Standard output
129
135
  console.log('stderr:', result.stderr); // Standard error
@@ -162,11 +168,7 @@ export async function connectClone() {
162
168
  await $`cat ${path.join(cloneTo, 'conf/saml/auth0.xml')}`;
163
169
 
164
170
  // 8) Git add, commit, push
165
- await $`cd ${cloneTo} && git checkout master && git pull --ff-only`;
166
- await $`cd ${cloneTo} && git remote -v`;
167
- await $`cd ${cloneTo} && git branch`;
168
- await $`cd ${cloneTo} && git status`;
169
- await $`cd ${cloneTo} && git add . ../sites.sh`;
171
+ await $`cd ${cloneTo} && git add ./conf/application.conf ./conf/saml/auth0.xml`;
170
172
  await $`cd ${cloneTo} && git status`;
171
173
 
172
174
  const numChanges = (await $`cd ${cloneTo} && git diff-index HEAD`).stdout