Skip to content

Commit

Permalink
feat(gitreceive): fix type of dockerBuildArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsOps committed Feb 22, 2017
1 parent b91c8a0 commit 357f9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitreceive/k8s_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func dockerBuilderPod(
//
// So we need to translate the map into json.
dockerBuildArgs, _ := json.Marshal(env)
addEnvToPod(pod, "DOCKER_BUILD_ARGS", dockerBuildArgs)
addEnvToPod(pod, "DOCKER_BUILD_ARGS", string(dockerBuildArgs))

pod.Spec.Containers[0].Name = dockerBuilderName
pod.Spec.Containers[0].Image = image
Expand Down

0 comments on commit 357f9a1

Please sign in to comment.