HUB
Sign inSign up

projectnebula/kaniko

By projectnebula

•Updated over 6 years ago

The Kaniko task runs the Kaniko image builder.

Image
0

10K+

projectnebula/kaniko repository overview

⁠Kaniko

This Kaniko step container runs the Kaniko image builder.

⁠Specifications

SettingChild settingData typeDescriptionDefaultRequired
destinationstringThe destination repository to push the image to after building.NoneTrue
contextstringThe directory within the specified Git repository to use as the Docker context/False
buildArgsmappingA mapping of build argument names to values to pass to the build.NoneFalse
dockerfilestringWithin the specified context directory, the path to the Dockerfile to build.DockerfileFalse
gitmappingA map of git configuration. If you're using HTTPS, only name and repository are required.None
ssh_keystringThe SSH key to use when cloning the git repository. You can pass the key to Nebula as a secret. See the example below.NoneTrue
known_hostsstringSSH known hosts file. Use a Nebula secret to pass the contents of the file into the workflow as a base64-encoded string. See the example below.NoneTrue
namestringA directory name for the git clone.NoneTrue
branchstringThe Git branch to clone.masterFalse
repositorystringThe git repository URL.NoneTrue

Note: The value you set for a secret must be a string. If you have multiple key-value pairs to pass into the secret, or your secret is the contents of a file, you must encode the values using base64 encoding, and use the encoded string as the secret value.

⁠Examples

Here is an example of the step in a Nebula workflow:

steps:

...

- name: kaniko
  image: projectnebula/kaniko:latest
  spec:
    context: deploy
    buildArgs:
      ALPINE_VERSION: '3.6'
    destination: gcr.io/my-repo/my-image:latest
    git: 
      ssh_key:
        $type: Secret
        name: ssh_key
      known_hosts:
        $type: Secret
        name: known_hosts
      name: my-git-repo
      branch: dev
      repository: path/to/your/repo
Tag summary
Recent tags
Content type
Image
Digest
Size
44.1 MB
Last updated
over 6 years ago
docker pull projectnebula/kaniko:latest