Skip to content

Commit 65f18d4

Browse files
authored
Fix issue of workDir not being used in the code (#49)
Signed-off-by: divyansh42 <diagrawa@redhat.com>
1 parent 8fe53ef commit 65f18d4

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.github/workflows/scratch_build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
spring-petclinic-*.jar
9292
port: 8080
9393
archs: amd64,arm64
94+
workdir: "."
9495

9596
- name: Echo Outputs
9697
run: |

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ After building your image, use [push-to-registry](https://github.com/redhat-acti
4343
| archs | Architecture(s) to build the image(s) for. For multiple architectures, separate by a comma. Refer to [Multi arch builds](#multi-arch-builds) to setup the `qemu-user-static` dependency. | `amd64`
4444
| base-image | The base image to use for the container. | **Must be provided**
4545
| content | Paths to files or directories to copy inside the container to create the file image. This is a multiline input to allow you to copy multiple files/directories.| None
46-
| context | Path to directory to use as the build context. | `.`
4746
| entrypoint | The entry point to set for the container. This is a multiline input; split arguments across lines. | None
4847
| envs | The environment variables to be set when running the container. This is a multiline input to add multiple environment variables. | None
4948
| image | Name to give to the output image. | **Must be provided**

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/buildah.ts

+4
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ export class BuildahCli implements Buildah {
104104
args.push("--arch");
105105
args.push(settings.archs);
106106
}
107+
if (settings.workingdir) {
108+
args.push("--workingdir");
109+
args.push(settings.workingdir);
110+
}
107111
args.push(container);
108112
return this.execute(args);
109113
}

0 commit comments

Comments
 (0)