docker-build-push/dist/index.js

22 lines
770 KiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(r,a,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,a,i,s){if(s===undefined)s=i;Object.defineProperty(r,s,{enumerable:true,get:function(){return a[i]}})}:function(r,a,i,s){if(s===undefined)s=i;r[s]=a[i]});var p=this&&this.__setModuleDefault||(Object.create?function(r,a){Object.defineProperty(r,"default",{enumerable:true,value:a})}:function(r,a){r["default"]=a});var d=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var a={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))s(a,r,i);p(a,r);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const l=d(i(2037));const u=i(5278);function issueCommand(r,a,i){const s=new Command(r,a,i);process.stdout.write(s.toString()+l.EOL)}a.issueCommand=issueCommand;function issue(r,a=""){issueCommand(r,{},a)}a.issue=issue;const c="::";class Command{constructor(r,a,i){if(!r){r="missing.command"}this.command=r;this.properties=a;this.message=i}toString(){let r=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let a=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const s=this.properties[i];if(s){if(a){a=false}else{r+=","}r+=`${i}=${escapeProperty(s)}`}}}}r+=`${c}${escapeData(this.message)}`;return r}}function escapeData(r){return u.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return u.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(r,a,i){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,a,i,s){if(s===undefined)s=i;Object.defineProperty(r,s,{enumerable:true,get:function(){return a[i]}})}:function(r,a,i,s){if(s===undefined)s=i;r[s]=a[i]});var p=this&&this.__setModuleDefault||(Object.create?function(r,a){Object.defineProperty(r,"default",{enumerable:true,value:a})}:function(r,a){r["default"]=a});var d=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var a={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))s(a,r,i);p(a,r);return a};var l=this&&this.__awaiter||function(r,a,i,s){function adopt(r){return r instanceof i?r:new i((function(a){a(r)}))}return new(i||(i=Promise))((function(i,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const u=i(7351);const c=i(717);const m=i(5278);const h=d(i(2037));const v=d(i(1017));const g=i(8041);var _;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(_=a.ExitCode||(a.ExitCode={}));function exportVariable(r,a){const i=m.toCommandValue(a);process.env[r]=i;const s=process.env["GITHUB_ENV"]||"";if(s){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(r,a))}u.issueCommand("set-env",{name:r},i)}a.exportVariable=exportVariable;function setSecret(r){u.issueCommand("add-mask",{},r)}a.setSecret=setSecret;function addPath(r){const a=process.env["GITHUB_PATH"]||"";if(a){c.issueFileCommand("PATH",r)}else{u.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${v.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(r,a){const i=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!i){throw new Error(`Input required and not supplied: ${r}`)}if(a&&a.trimWhitespace===false){return i}return i.trim()}a.getInput=getInput;function getMultilineInput(r,a){const i=getInput(r,a).split("\n").filter((r=>r!==""));if(a&&a.trimWhitespace===false){return i}return i.map((r=
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var a,i;if(isObject(r)===false)return false;a=r.constructor;if(a===undefined)return true;i=a.prototype;if(isObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}a.isPlainObject=isPlainObject},9417:r=>{"use strict";r.exports=balanced;function balanced(r,a,i){if(r instanceof RegExp)r=maybeMatch(r,i);if(a instanceof RegExp)a=maybeMatch(a,i);var s=range(r,a,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+r.length,s[1]),post:i.slice(s[1]+a.length)}}function maybeMatch(r,a){var i=a.match(r);return i?i[0]:null}balanced.range=range;function range(r,a,i){var s,p,d,l,u;var c=i.indexOf(r);var m=i.indexOf(a,c+1);var h=c;if(c>=0&&m>0){if(r===a){return[c,m]}s=[];d=i.length;while(h>=0&&!u){if(h==c){s.push(h);c=i.indexOf(r,h+1)}else if(s.length==1){u=[s.pop(),m]}else{p=s.pop();if(p<d){d=p;l=m}m=i.indexOf(a,h+1)}h=c<m&&c>=0?c:m}if(s.length){u=[d,l]}}return u}},3682:(r,a,i)=>{var s=i(4670);var p=i(5549);var d=i(6819);var l=Function.bind;var u=l.bind(l);function bindApi(r,a,i){var s=u(d,null).apply(null,i?[a,i]:[a]);r.api={remove:s};r.remove=s;["before","error","after","wrap"].forEach((function(s){var d=i?[a,s,i]:[a,s];r[s]=r.api[s]=u(p,null).apply(null,d)}))}function HookSingular(){var r="h";var a={registry:{}};var i=s.bind(null,a,r);bindApi(i,a,r);return i}function HookCollection(){var r={registry:{}};var a=s.bind(null,r);bindApi(a,r);return a}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();r.exports=Hook;r.exports.Hook=Hook;r.exports.Singular=Hook.Singular;r.exports.Collection=Hook.Collection},5549:r=>{r.exports=addHook;function addHook(r,a,i,s){var p=s;if(!r.registry[i]){r.registry[i]=[]}if(a==="before"){s=function(r,a){return Promise.resolve().then(p.bind(null,a)).then(r.bind(null,a))}}if(a==="after"){s=function(r,a){var i;return Promise.resolve().then(r.bind(null,a)).then((function(r){i=r;return p(i,a)})).then((function(){return i}))}}if(a==="error"){s=function(r,a){return Promise.resolve().then(r.bind(null,a)).catch((function(r){return p(r,a)}))}}r.registry[i].push({hook:s,orig:p})}},4670:r=>{r.exports=register;function register(r,a,i,s){if(typeof i!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(a)){return a.reverse().reduce((function(a,i){return register.bind(null,r,i,a,s)}),i)()}return Promise.resolve().then((function(){if(!r.registry[a]){return i(s)}return r.registry[a].reduce((function(r,a){return a.hook.bind(null,r,s)}),i)()}))}},6819:r=>{r.exports=removeHook;function removeHook(r,a,i){if(!r.registry[a]){return}var s=r.registry[a].map((function(r){return r.orig})).indexOf(i);if(s===-1){return}r.registry[a].splice(s,1)}},3717:(r,a,i)=>{var s=i(6891);var p=i(9417);r.exports=expandTop;var d="\0SLASH"+Math.random()+"\0";var l="\0OPEN"+Math.random()+"\0";var u="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var m="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(d).split("\\{").join(l).split("\\}").join(u).split("\\,").join(c).split("\\.").join(m)}function unescapeBraces(r){return r.split(d).join("\\").split(l).join("{").split(u).join("}").split(c).join(",").split(m).join(".")}function parseCommaParts(r){if(!r)return[""];var a=[];var i=p("{","}",r);if(!i)return r.split(",");var s=i.pre;var d=i.body;var l=i.post;var u=s.split(",");u[u.length-1]+="{"+d+"}";var c=parseCommaParts(l);if(l.length){u[u.length-1]+=c.shift();u.push.apply(u,c)}a.push.apply(a,u);return a}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function identity(r){return r}function
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var a,i;if(isObject(r)===false)return false;a=r.constructor;if(a===undefined)return true;i=a.prototype;if(isObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}r.exports=isPlainObject},4329:r=>{"use strict";function e(r){this.message=r}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var a=String(r).replace(/=+$/,"");if(a.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,s,p=0,d=0,l="";s=a.charAt(d++);~s&&(i=p%4?64*i+s:s,p++%4)?l+=String.fromCharCode(255&i>>(-2*p&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return l};function t(r){var i=r.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(a(r).replace(/(.)/g,(function(r,a){var i=a.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i})))}(i)}catch(r){return a(i)}}function n(r){this.message=r}function o(r,a){if("string"!=typeof r)throw new n("Invalid token specified");var i=!0===(a=a||{}).header?0:1;try{return JSON.parse(t(r.split(".")[i]))}catch(r){throw new n("Invalid token specified: "+r.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const i=o;i.default=o,i.InvalidTokenError=n,r.exports=i},7129:(r,a,i)=>{"use strict";const s=i(665);const p=Symbol("max");const d=Symbol("length");const l=Symbol("lengthCalculator");const u=Symbol("allowStale");const c=Symbol("maxAge");const m=Symbol("dispose");const h=Symbol("noDisposeOnSet");const v=Symbol("lruList");const g=Symbol("cache");const _=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(r){if(typeof r==="number")r={max:r};if(!r)r={};if(r.max&&(typeof r.max!=="number"||r.max<0))throw new TypeError("max must be a non-negative number");const a=this[p]=r.max||Infinity;const i=r.length||naiveLength;this[l]=typeof i!=="function"?naiveLength:i;this[u]=r.stale||false;if(r.maxAge&&typeof r.maxAge!=="number")throw new TypeError("maxAge must be a number");this[c]=r.maxAge||0;this[m]=r.dispose;this[h]=r.noDisposeOnSet||false;this[_]=r.updateAgeOnGet||false;this.reset()}set max(r){if(typeof r!=="number"||r<0)throw new TypeError("max must be a non-negative number");this[p]=r||Infinity;trim(this)}get max(){return this[p]}set allowStale(r){this[u]=!!r}get allowStale(){return this[u]}set maxAge(r){if(typeof r!=="number")throw new TypeError("maxAge must be a non-negative number");this[c]=r;trim(this)}get maxAge(){return this[c]}set lengthCalculator(r){if(typeof r!=="function")r=naiveLength;if(r!==this[l]){this[l]=r;this[d]=0;this[v].forEach((r=>{r.length=this[l](r.value,r.key);this[d]+=r.length}))}trim(this)}get lengthCalculator(){return this[l]}get length(){return this[d]}get itemCount(){return this[v].length}rforEach(r,a){a=a||this;for(let i=this[v].tail;i!==null;){const s=i.prev;forEachStep(this,r,i,a);i=s}}forEach(r,a){a=a||this;for(let i=this[v].head;i!==null;){const s=i.next;forEachStep(this,r,i,a);i=s}}keys(){return this[v].toArray().map((r=>r.key))}values(){return this[v].toArray().map((r=>r.value))}reset(){if(this[m]&&this[v]&&this[v].length){this[v].forEach((r=>this[m](r.key,r.value)))}this[g]=new Map;this[v]=new s;this[d]=0}dump(){return this[v].map((r=>isStale(this,r)?false:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)})).toArray().filter((r=>r))}dumpLru(){return this[v]}set(r,a,i){i=i||this[c];if(i&&typeof i!=="number")throw new TypeError("maxAge must be a number");const s=i?Date.now():0;const u=this[l](a,r);if(this[g].has(r)){if(u>this[p]){del(this,this[g].get(r));return false}const l=this[g].get(r);const c=l.value;if(this[m]){if(!this[h])this[m](r,c.value)}c.now=s;c.maxAge=i;c.value=a;this[d]+=u-c.length;c.length=u;this.get(r);trim(this);return true}const _=new Entry(r,a,
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const s=i(7147);const p=i(2037);const d=i(1017);const l=i(6113);const u={fs:s.constants,os:p.constants};const c=i(4959);const m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",h=/XXXXXX/,v=3,g=(u.O_CREAT||u.fs.O_CREAT)|(u.O_EXCL||u.fs.O_EXCL)|(u.O_RDWR||u.fs.O_RDWR),_=p.platform()==="win32",w=u.EBADF||u.os.errno.EBADF,y=u.ENOENT||u.os.errno.ENOENT,b=448,E=384,S="exit",T=[],O=s.rmdirSync.bind(s),P=c.sync;let k=false;function tmpName(r,a){const i=_parseArguments(r,a),p=i[0],d=i[1];try{_assertAndSanitizeOptions(p)}catch(r){return d(r)}let l=p.tries;(function _getUniqueName(){try{const r=_generateTmpName(p);s.stat(r,(function(a){if(!a){if(l-- >0)return _getUniqueName();return d(new Error("Could not get a unique tmp filename, max tries reached "+r))}d(null,r)}))}catch(r){d(r)}})()}function tmpNameSync(r){const a=_parseArguments(r),i=a[0];_assertAndSanitizeOptions(i);let p=i.tries;do{const r=_generateTmpName(i);try{s.statSync(r)}catch(a){return r}}while(p-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(r,a){const i=_parseArguments(r,a),p=i[0],d=i[1];tmpName(p,(function _tmpNameCreated(r,a){if(r)return d(r);s.open(a,g,p.mode||E,(function _fileCreated(r,i){if(r)return d(r);if(p.discardDescriptor){return s.close(i,(function _discardCallback(r){return d(r,a,undefined,_prepareTmpFileRemoveCallback(a,-1,p,false))}))}else{const r=p.discardDescriptor||p.detachDescriptor;d(null,a,i,_prepareTmpFileRemoveCallback(a,r?-1:i,p,false))}}))}))}function fileSync(r){const a=_parseArguments(r),i=a[0];const p=i.discardDescriptor||i.detachDescriptor;const d=tmpNameSync(i);var l=s.openSync(d,g,i.mode||E);if(i.discardDescriptor){s.closeSync(l);l=undefined}return{name:d,fd:l,removeCallback:_prepareTmpFileRemoveCallback(d,p?-1:l,i,true)}}function dir(r,a){const i=_parseArguments(r,a),p=i[0],d=i[1];tmpName(p,(function _tmpNameCreated(r,a){if(r)return d(r);s.mkdir(a,p.mode||b,(function _dirCreated(r){if(r)return d(r);d(null,a,_prepareTmpDirRemoveCallback(a,p,false))}))}))}function dirSync(r){const a=_parseArguments(r),i=a[0];const p=tmpNameSync(i);s.mkdirSync(p,i.mode||b);return{name:p,removeCallback:_prepareTmpDirRemoveCallback(p,i,true)}}function _removeFileAsync(r,a){const _handler=function(r){if(r&&!_isENOENT(r)){return a(r)}a()};if(0<=r[0])s.close(r[0],(function(){s.unlink(r[1],_handler)}));else s.unlink(r[1],_handler)}function _removeFileSync(r){let a=null;try{if(0<=r[0])s.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throw r}finally{try{s.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))a=r}}if(a!==null){throw a}}function _prepareTmpFileRemoveCallback(r,a,i,s){const p=_prepareRemoveCallback(_removeFileSync,[a,r],s);const d=_prepareRemoveCallback(_removeFileAsync,[a,r],s,p);if(!i.keep)T.unshift(p);return s?p:d}function _prepareTmpDirRemoveCallback(r,a,i){const p=a.unsafeCleanup?c:s.rmdir.bind(s);const d=a.unsafeCleanup?P:O;const l=_prepareRemoveCallback(d,r,i);const u=_prepareRemoveCallback(p,r,i,l);if(!a.keep)T.unshift(l);return i?l:u}function _prepareRemoveCallback(r,a,i,s){let p=false;return function _cleanupCallback(d){if(!p){const l=s||_cleanupCallback;const u=T.indexOf(l);if(u>=0)T.splice(u,1);p=true;if(i||r===O||r===P){return r(a)}else{return r(a,d||function(){})}}}}function _garbageCollector(){if(!k)return;while(T.length){try{T[0]()}catch(r){}}}function _randomChars(r){let a=[],i=null;try{i=l.randomBytes(r)}catch(a){i=l.pseudoRandomBytes(r)}for(var s=0;s<r;s++){a.push(m[i[s]%m.length])}return a.join("")}function _isBlank(r){return r===null||_isUndefined(r)||!r.trim()}function _isUndefined(r){return typeof r==="undefined"}function _parseArguments(r,a){if(typeof r==="function"){return[{},r]}if(_isUndefined(r)){return[{},a]}const i={};for(const a of Object.getOwnPropertyNames(r)){i[a]=r[a]}return[i,a]}function _generateTmpName(r){const a=r.tmpdir;if(!_isUndefined(r.name))return d.join(a,r.dir,r.name);if(!_isUndefined(r.template))return d.join(a,r.dir,r.template).replace(h,_randomChars(6));const i=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.po
//# sourceMappingURL=index.js.map