Skip to content

Commit

Permalink
exec
Browse files Browse the repository at this point in the history
  • Loading branch information
sherix88 committed Jun 27, 2018
1 parent d53d177 commit 473f27c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
RUN npm install
RUN export KUBECONFIG=/home/.kube/admin.conf
CMD ["node","server.js"]
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ app.all('*', function(req, res, next) {
}
});

child_process.exec('RUN export KUBECONFIG=/home/.kube/admin.conf')

app.post('/', function(req, res) {
var name = req.body.repository.repo_name;
var tag = req.body.push_data.tag;
Expand Down

0 comments on commit 473f27c

Please sign in to comment.