mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-08 10:01:34 +00:00
Update Action to Node 16 and handle set-output deprecation (#109)
* update: action runtime to node16 * chore: pin dependencies * fix: build error with new TS version * add: editorconfig * chore: update all actions used in workflows * update: readme action sample versions * chore: bump developer dependencies * chore: bump developer dependencies * fix: eslint issues * fix: broken buildah copy logic * chore: address review feedback version bump
This commit is contained in:
parent
4b8d36793b
commit
5177407148
20 changed files with 3587 additions and 4880 deletions
|
@ -66,9 +66,17 @@ export class BuildahCli implements Buildah {
|
|||
}
|
||||
|
||||
async buildUsingDocker(
|
||||
image: string, context: string, containerFiles: string[], buildArgs: string[],
|
||||
useOCI: boolean, labels: string[], layers: string,
|
||||
extraArgs: string[], tlsVerify: boolean, arch?: string, platform?: string
|
||||
image: string,
|
||||
context: string,
|
||||
containerFiles: string[],
|
||||
buildArgs: string[],
|
||||
useOCI: boolean,
|
||||
labels: string[],
|
||||
layers: string,
|
||||
extraArgs: string[],
|
||||
tlsVerify: boolean,
|
||||
arch?: string,
|
||||
platform?: string
|
||||
): Promise<CommandResult> {
|
||||
const args: string[] = [ "bud" ];
|
||||
if (arch) {
|
||||
|
@ -122,8 +130,9 @@ export class BuildahCli implements Buildah {
|
|||
|
||||
core.debug("copy");
|
||||
core.debug(container);
|
||||
for (const content of contentToCopy) {
|
||||
const args: string[] = [ "copy", container, content ];
|
||||
core.debug("content: " + contentToCopy.join(" "));
|
||||
if (contentToCopy.length > 0) {
|
||||
const args: string[] = [ "copy", container ].concat(contentToCopy);
|
||||
if (contentPath) {
|
||||
args.push(contentPath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue