Skip to content

Commit

Permalink
Add docker-compose push support
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Aug 8, 2019
1 parent bb1d420 commit 95697fa
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,20 @@ class BuildkitePipeline implements ConfigurableEnvironment {
model.run = service
}

/**
* Push a built service to a repository. Multiple pushes are allowed in one step.
*/
void push(String service, String image) {
model.get('push', []) << "$service:$image"
}

/**
* Push a built service to a repository. Multiple pushes are allowed in one step.
*/
void push(String service, String image, String tag) {
push(service, "$image:$tag")
}

/**
* The repository for pushing and pulling pre-built images.
*/
Expand Down

0 comments on commit 95697fa

Please sign in to comment.