@leverege/build-tools 2.47.0 → 2.47.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 +1 -1
- package/src/Docker.mjs +3 -5
- package/src/docker-to-registry.mjs +3 -2
package/package.json
CHANGED
package/src/Docker.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import handlebars from 'handlebars'
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
errorExit,
|
|
8
|
+
getDateTimestamp,
|
|
8
9
|
getGcpAccount,
|
|
9
10
|
log,
|
|
10
11
|
proceed,
|
|
@@ -129,12 +130,9 @@ dunm() {
|
|
|
129
130
|
}
|
|
130
131
|
`
|
|
131
132
|
|
|
132
|
-
// Just uses the old dockreate of formatting the date.
|
|
133
|
-
const dateTimestamp = await shellCmd( 'date +%Y%m%d-%H%M' )
|
|
134
|
-
|
|
135
133
|
const defaultSettings = {
|
|
136
134
|
apkadds : '',
|
|
137
|
-
date :
|
|
135
|
+
date : getDateTimestamp(),
|
|
138
136
|
nodeimage : 'iron-alpine',
|
|
139
137
|
npmlogging : '--silent',
|
|
140
138
|
pluginfile : '# NO PLUGIN',
|
|
@@ -292,7 +290,7 @@ const repoCleanup = async () => {
|
|
|
292
290
|
|
|
293
291
|
fs.writeFileSync( 'docker/.gitignore', '.previous\nDockerfile' )
|
|
294
292
|
|
|
295
|
-
await shellCmd( 'git add docker' )
|
|
293
|
+
await shellCmd( 'git add -f docker' )
|
|
296
294
|
|
|
297
295
|
log( `
|
|
298
296
|
${chalk.yellow.bold( '***IMPORTANT***' )}
|
|
@@ -224,9 +224,10 @@ if ( isNpmWorkspace ) {
|
|
|
224
224
|
await docker.buildContainerImage( { artifactProject, artifactRegistry, containerName, imageVersion, isNpmWorkspace } )
|
|
225
225
|
|
|
226
226
|
if ( willGitTag ) {
|
|
227
|
-
log( chalk.green.bold( `Tagging and Pushing ${imageVersion}\n` ) )
|
|
228
227
|
const tagDescription = `docker_${imageVersion}`
|
|
229
|
-
|
|
228
|
+
const fullImageTag = repoDescr.isMonoRepo ? `${repoDescr.containerName}/${imageVersion}` : imageVersion
|
|
229
|
+
log( chalk.green.bold( `Tagging and Pushing ${fullImageTag}\n` ) )
|
|
230
|
+
await shellCmd( `git tag -f ${fullImageTag} -m ${tagDescription}` )
|
|
230
231
|
await shellCmd( 'git push --follow-tags' )
|
|
231
232
|
} else {
|
|
232
233
|
log( chalk.yellow.bold( '\n*** Skipped git tagging - beta release' ) )
|