modify cloudbuild

This commit is contained in:
Zachary Boyd 2018-08-12 11:54:48 -04:00
parent 784ab58e84
commit 422790bee1

View file

@ -2,8 +2,8 @@ steps:
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'gcr.io/znetstar-net/tor-router', '.' ]
- name: 'gcr.io/znetstar-net/tor-router'
entrypoint: '/bin/bash'
args: [ '-c', '"cd /app && npm test"' ]
entrypoint: '/app/node_modules/.bin/mocha'
args: [ '/app/test/test.js' ]
- name: 'gcr.io/cloud-builders/docker'
args: [ 'push', 'gcr.io/znetstar-net/tor-router' ]
images: ['gcr.io/znetstar-net/tor-router']