commit
						c5789b4eb9
					
				| @ -54,7 +54,7 @@ build-secrets, remote cache, etc. and different builder deployment/namespacing o | |||||||
| 
 | 
 | ||||||
| ### Git context | ### Git context | ||||||
| 
 | 
 | ||||||
| The default behavior of this action is to use the [Git context invoked by your workflow](https://github.com/docker/build-push-action/blob/master/src/context.ts#L35). | The default behavior of this action is to use the [Git context invoked by your workflow](https://github.com/docker/build-push-action/blob/master/src/context.ts#L10). | ||||||
| 
 | 
 | ||||||
| ```yaml | ```yaml | ||||||
| name: ci | name: ci | ||||||
|  | |||||||
| @ -13,7 +13,6 @@ inputs: | |||||||
|   context: |   context: | ||||||
|     description: "Build's context is the set of files located in the specified PATH or URL" |     description: "Build's context is the set of files located in the specified PATH or URL" | ||||||
|     required: false |     required: false | ||||||
|     default: '.' |  | ||||||
|   file: |   file: | ||||||
|     description: "Path to the Dockerfile" |     description: "Path to the Dockerfile" | ||||||
|     required: false |     required: false | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -13712,7 +13712,7 @@ const buildx = __importStar(__webpack_require__(295)); | |||||||
| const core = __importStar(__webpack_require__(186)); | const core = __importStar(__webpack_require__(186)); | ||||||
| const github = __importStar(__webpack_require__(438)); | const github = __importStar(__webpack_require__(438)); | ||||||
| exports.tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-build-push-')); | exports.tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-build-push-')); | ||||||
| const defaultContext = `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}#${github.context.ref}`; | const defaultContext = `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}.git#${github.context.ref.replace(/^refs\//, '')}`; | ||||||
| function getInputs() { | function getInputs() { | ||||||
|     return __awaiter(this, void 0, void 0, function* () { |     return __awaiter(this, void 0, void 0, function* () { | ||||||
|         return { |         return { | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ import * as core from '@actions/core'; | |||||||
| import * as github from '@actions/github'; | import * as github from '@actions/github'; | ||||||
| 
 | 
 | ||||||
| export const tmpDir: string = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-build-push-')); | export const tmpDir: string = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-build-push-')); | ||||||
| const defaultContext: string = `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}#${github.context.ref}`; | const defaultContext: string = `https://github.com/${github.context.repo.owner}/${ | ||||||
|  |   github.context.repo.repo | ||||||
|  | }.git#${github.context.ref.replace(/^refs\//, '')}`;
 | ||||||
| 
 | 
 | ||||||
| export interface Inputs { | export interface Inputs { | ||||||
|   context: string; |   context: string; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user