Skip to content

Commit

Permalink
Merge pull request #5 from noble-assets/clone-key
Browse files Browse the repository at this point in the history
feat: add support for `clone-key`
  • Loading branch information
agouin authored Jul 16, 2024
2 parents 0180cff + d409c7b commit 7f75f09
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ inputs:
default: heighliner
required: false

clone-key:
description: "base64 encoded ssh key used for authenticating a private repository"
required: false

heighliner-tag:
description: "Name of the heighliner tag to use from GitHub (defaults to latest)"
required: false
Expand Down Expand Up @@ -110,11 +114,11 @@ inputs:
required: false

libraries:
description: "Any extra libraries need to run the binary. In additon to the binary itself, these will be copied over to the final image. Providing this option will override the default chains.yaml with a custom chain spec."
description: "Any extra libraries need to run the binary. In addition to the binary itself, these will be copied over to the final image. Providing this option will override the default chains.yaml with a custom chain spec."
required: false

tar-export-path:
description: "File path to export built image as docker tarball. This should end with a .tar extention (ex: docker-image.tar)"
description: "File path to export built image as docker tarball. This should end with a .tar extension (ex: docker-image.tar)"
required: false

skip:
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const buildKeysString = [
"github-organization",
"github-repo",
"registry",
"clone-key",
"platform",
"buildkit-address",
"git-ref",
Expand Down Expand Up @@ -120,6 +121,10 @@ function buildOptionsToArguments(opts: BuildOptions): string[] {
args = [...args, "--registry", opts.registry];
}

if (opts["clone-key"] !== undefined) {
args = [...args, "--clone-key", opts["clone-key"]];
}

if (opts["git-ref"] !== undefined) {
args = [...args, "--git-ref", opts["git-ref"]];
}
Expand Down

0 comments on commit 7f75f09

Please sign in to comment.