Skip to content

Commit

Permalink
Added TODO to build and push CUSTOM docker-compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
nyakaz73 committed Dec 18, 2020
1 parent 86047db commit c228eeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ const buildImage = ({ use_compose, image_name, docker_path }) => {
if (use_compose === 'true') {
const build = execSync(`docker-compose build`, execOptions).toString();
console.log(build);
//TODO
//here we need to add an option of allowing usert put a custom dockercomposefile
// $ docker-compose -f docker-compose.staging.yml build

} else {
const build = execSync(`docker build -t ${image_name} ${docker_path}`, execOptions).toString();
Expand Down Expand Up @@ -165,6 +168,9 @@ const pushImage = ({ aws_account_id, region, repo_name, tag_name, repo_uri, imag
if (use_compose === 'true') {
const push = execSync(`docker-compose push`).toString();
console.log(push);
//TO DO
// Add an option to custom push a docker-compose file
// $ docker-compose -f docker-compose.staging.yml push
} else {
if (repo_uri !== "") {
const push = execSync(`docker push ${repo_uri}:${tag_name}`).toString();
Expand Down

0 comments on commit c228eeb

Please sign in to comment.