@cmflow/cli 0.72.0 → 0.73.0
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
|
@@ -77,12 +77,16 @@ export async function prepare (pluginConfig, context) {
|
|
|
77
77
|
logger.info('Start build task')
|
|
78
78
|
await pkgManager.run('build')
|
|
79
79
|
logger.info('Build task finished with success...')
|
|
80
|
+
} else {
|
|
81
|
+
logger.info('Skipping build task')
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
if (HAS_E2E && !SKIP_DEPLOY) {
|
|
83
85
|
logger.info('Start test_e2e task')
|
|
84
86
|
await pkgManager.run(E2E_CMD || 'test_e2e')
|
|
85
87
|
logger.info('test_e2e task finished with success...')
|
|
88
|
+
} else {
|
|
89
|
+
logger.info('Skipping test_e2e task')
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
if (!SKIP_GITHUB_PUBLISH) {
|
|
@@ -2,16 +2,22 @@ import { docker } from '../../common'
|
|
|
2
2
|
import { heroku } from '../../common/cli/heroku'
|
|
3
3
|
|
|
4
4
|
export async function dockerPublish (context) {
|
|
5
|
-
const { config: { DEPLOY_ON_DOCKER, DEPLOY_ON_HEROKU, SKIP_DEPLOY } } = context
|
|
5
|
+
const { logger, config: { DEPLOY_ON_DOCKER, DEPLOY_ON_HEROKU, SKIP_DEPLOY } } = context
|
|
6
6
|
|
|
7
7
|
if (!SKIP_DEPLOY) {
|
|
8
8
|
if (DEPLOY_ON_DOCKER) {
|
|
9
9
|
await deployOnDockerHub(context)
|
|
10
|
+
} else {
|
|
11
|
+
logger.info('Skip docker publish')
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
if (DEPLOY_ON_HEROKU) {
|
|
13
15
|
await deployOnHeroku(context)
|
|
16
|
+
} else {
|
|
17
|
+
logger.info('Skip heroku publish')
|
|
14
18
|
}
|
|
19
|
+
} else {
|
|
20
|
+
logger.info('Skip docker/heroku publish')
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
|