Skip to content

Commit

Permalink
Merge pull request #384 from FlowCI/fix/1526
Browse files Browse the repository at this point in the history
Fix/1526
  • Loading branch information
gy2006 authored Dec 5, 2020
2 parents ac026e5 + 48b3889 commit 9d64c7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions domain/src/main/java/com/flowci/domain/DockerOption.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public class DockerOption {

private String image;

private String auth;

private String name;

private List<String> entrypoint;
Expand Down
3 changes: 3 additions & 0 deletions tree/src/main/java/com/flowci/tree/yml/DockerYml.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class DockerYml {

private String image;

private String auth; // auth secret for private docker registry

private String name;

private String network;
Expand All @@ -55,6 +57,7 @@ public DockerOption toDockerOption() {
DockerOption option = new DockerOption();
option.setImage(image);

ObjectsHelper.ifNotNull(auth, option::setAuth);
ObjectsHelper.ifNotNull(name, option::setName);
ObjectsHelper.ifNotNull(network, option::setNetwork);
ObjectsHelper.ifNotNull(ports, option::setPorts);
Expand Down

0 comments on commit 9d64c7d

Please sign in to comment.