Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

add support for docker builds #56

Merged
merged 2 commits into from
Aug 19, 2022
Merged

add support for docker builds #56

merged 2 commits into from
Aug 19, 2022

Conversation

cstyan
Copy link
Contributor

@cstyan cstyan commented Aug 19, 2022

mostly copy pasta of your existing docker build code

Signed-off-by: Callum Styan callumstyan@gmail.com

Signed-off-by: Callum Styan <callumstyan@gmail.com>
Copy link
Collaborator

@kminehart kminehart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't sure what arg was here.

docker/docker.go Outdated
return client
}

func BuildImage(image Image, arg pipeline.Argument) pipeline.Step {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func BuildImage(image Image, arg pipeline.Argument) pipeline.Step {
func BuildImage(image Image, versionArg pipeline.Argument) pipeline.Step {

docker/docker.go Outdated
}

return pipeline.NewStep(action).
WithArguments(pipeline.ArgumentSourceFS, pipeline.ArgumentDockerSocketFS, arg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WithArguments(pipeline.ArgumentSourceFS, pipeline.ArgumentDockerSocketFS, arg)
WithArguments(pipeline.ArgumentSourceFS, pipeline.ArgumentDockerSocketFS, versionArg)

docker/docker.go Outdated
func BuildImage(image Image, arg pipeline.Argument) pipeline.Step {
action := func(ctx context.Context, opts pipeline.ActionOpts) error {
client := Client()
version := opts.State.MustGetString(arg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version := opts.State.MustGetString(arg)
version := opts.State.MustGetString(versionArg)

Signed-off-by: Callum Styan <callumstyan@gmail.com>
@cstyan cstyan merged commit 7affc85 into main Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants