ztechno_core 0.0.102 → 0.0.104

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.
@@ -9,6 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  exports.dockerPublish = void 0;
10
10
  const path_1 = __importDefault(require('path'));
11
11
  const fs_1 = __importDefault(require('fs'));
12
+ const dotenv_1 = require('dotenv');
12
13
  const docker_build_1 = require('./docker-build');
13
14
  const docker_push_1 = require('./docker-push');
14
15
  const docker_update_1 = require('./docker-update');
@@ -34,6 +35,8 @@ function loadPackageJson() {
34
35
  * @param opt.volumes - Override volumes for remote update
35
36
  */
36
37
  async function dockerPublish(opt) {
38
+ // Load .env so ZTECHNO_API_SECRET (and other vars) are available
39
+ (0, dotenv_1.config)({ path: path_1.default.join(process.cwd(), '.env') });
37
40
  const pkg = loadPackageJson();
38
41
  const packagename = opt?.packagename || pkg.name;
39
42
  const awsAccountId = opt?.awsAccountId || pkg.config?.awsAccountId || process.env.AWS_ACCOUNT_ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.102",
3
+ "version": "0.0.104",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",