Skip to content

Commit

Permalink
push build
Browse files Browse the repository at this point in the history
  • Loading branch information
LongLiveCHIEF committed Nov 29, 2020
1 parent 1a21dbe commit ce9ac6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ module.exports =
const core = __webpack_require__(5330)
const github = __webpack_require__(2943)
const {taggingStrategy} = __webpack_require__(1457)
const {getInputBoolean} = __webpack_require__(1440)

const inputTags = core.getInput('tags')
const inputTags = getInputBoolean(core.getInput('tags'))
const tagName = core.getInput('tag_name')
const latest = core.getInput('latest')
const imageName = core.getInput('image_name')
Expand Down Expand Up @@ -8041,7 +8042,7 @@ exports.taggingStrategy = ({inputTags, latest, tagName, imageName}) => {
return imageName ? [...tags, `${imageName}:${tag.tag}`] : [...tags, tag.tag]
}, [])

if(latest){
if(latest !== 'false'){
imageName ? outputTags.push(`${imageName}:latest`) : outputTags.push('latest')
}
return outputTags.join(',')
Expand Down Expand Up @@ -8076,6 +8077,11 @@ exports.getIdentifier = (identifier, raw) => {
}
}

exports.getInputBoolean = (input) => {
let boolTest = RegExp('true', 'i')
return boolTest.test(input)
}


/***/ }),

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce9ac6b

Please sign in to comment.