Comparing version 1.1.5 to 1.1.6
@@ -6,3 +6,5 @@ #!/usr/bin/env node | ||
const readFileSync = require('fs').readFileSync | ||
const config = JSON.parse(readFileSync('package.json')).config || {} | ||
const pjson = JSON.parse(readFileSync('package.json')) | ||
const config = pjson.config || {} | ||
const tagName = pjson.version | ||
@@ -38,3 +40,3 @@ function authConfig() { | ||
function buildAndPushDockerImage(tagName) { | ||
function buildAndPushDockerImage() { | ||
const remoteTag = `${config.ecrRepoUrl}/${config.ecrRepoName}:${tagName}` | ||
@@ -62,5 +64,4 @@ const localTag = `${config.ecrRepoName}:${tagName}` | ||
checkDeps() | ||
const tagName = /refs\/tags\/([^ ]*) /.exec(commitLine)[1] | ||
buildAndPushDockerImage(tagName) | ||
buildAndPushDockerImage() | ||
} | ||
}) |
{ | ||
"name": "cpdeploy", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56
4193