@leverege/build-tools 2.67.2-pedro.1 → 2.67.2
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
package/src/DockerPy.mjs
CHANGED
|
@@ -221,9 +221,9 @@ async function buildContainerImage( {
|
|
|
221
221
|
await shellCmd( `${cloudBuildCmd} ${cloudBuildLogs} ${cloudBuildCfg} ./build`, { stdio : 'inherit' } )
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
async function repoCleanup(
|
|
224
|
+
async function repoCleanup() {
|
|
225
225
|
// remove garbage from the repo
|
|
226
|
-
|
|
226
|
+
const garbage = [
|
|
227
227
|
'build',
|
|
228
228
|
'dist',
|
|
229
229
|
'docker/.keep',
|
|
@@ -234,9 +234,6 @@ async function repoCleanup( doNotCleanupPaths = [] ) {
|
|
|
234
234
|
'docker/workspace',
|
|
235
235
|
]
|
|
236
236
|
|
|
237
|
-
// Remove any paths that are in the doNotCleanupPaths array from the garbage list
|
|
238
|
-
garbage = garbage.filter( path => !doNotCleanupPaths.includes( path ) )
|
|
239
|
-
|
|
240
237
|
garbage.forEach( trash => fs.rmSync( trash, { recursive : true, force : true } ) )
|
|
241
238
|
|
|
242
239
|
fs.writeFileSync( 'docker/.gitignore', '.previous\nDockerfile' )
|
|
@@ -124,11 +124,7 @@ const registryFolder = `${artifactRegistry}/images/${containerName}`
|
|
|
124
124
|
// await shellCmd( 'npm install', { stdio : 'inherit' } )
|
|
125
125
|
|
|
126
126
|
if ( giveGuidance ) {
|
|
127
|
-
|
|
128
|
-
'docker/Dockerfile',
|
|
129
|
-
]
|
|
130
|
-
|
|
131
|
-
await Docker.repoCleanup( doNotCleanupPaths ) // adjusts gitignore files and removes cruft
|
|
127
|
+
await Docker.repoCleanup() // adjusts gitignore files and removes cruft
|
|
132
128
|
log( `
|
|
133
129
|
|
|
134
130
|
|