Build Image

step

Build a docker image from the git resource provided.

Specification

destination

Required

string
The destination repository to push the image to after building.
context
Optional
string
The directory within the specified Git repository to use as the Docker context
dockerhub
Optional
string
If pushing to Docker Hub, a Secret containing the base64-encoded output of 'username:password'
google
Optional
object
A mapping of Google account configuration.
google.connection

Required

A Relay GCP connection to useConnection docs
!Connection {type: gcp, name: my-gcp-connection}
buildArgs
Optional
object
A mapping of build argument names to values to pass to the build.
dockerfile
Optional
string
Within the specified context directory, the path to the Dockerfile to build.
git

Required

object
A git repository containing the code to build
git.connection
Optional
A Relay SSH connection to useConnection docs
!Connection {type: ssh, name: my-ssh-connection}
git.name

Required

string
A directory name for the git clone.
git.branch
Optional
string
The Git branch to clone.
git.repository

Required

string
The git repository URL.

Join our community

We’re excited to see and share in our community’s creation. Take a look at our community overview to learn how to begin contributing to Relay.