This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chars = [ | |
'a', 'A', | |
'b', 'B', | |
'c', 'C', | |
'd', 'D', | |
'e', 'E', | |
'f', 'F', | |
'g', 'G', | |
'h', 'H', | |
'i', 'I', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use `git-cli` to get the current commit | |
function getCurrentCommit () { | |
return shSync('git rev-parse HEAD').toString().trim() || ''; | |
} | |
async function build() { | |
const currentCommit = getCurrentCommit(); | |
console.log('We are at commit:', currentCommit); | |
console.log('Building our docker image'); // could be any other bash script/command |