Build and Deploy with myiac - dfernandezm/moneycol GitHub Wiki

Building and deploying services into GKE

This should be done using a CloudBuild trigger on merges to master branch. For now the following commands need to be issued by hand whenever a build/deploy is required.

GraphQL Server

Build

myiac dockerBuild --project moneycol --app moneycolserver --buildPath ~/development/repos/moneycol/server --version 0.6.4 --commit b2e259

Deploy

myiac deploy --project moneycol --env dev --app moneycolserver --properties image.tag=0.6.4-b2e259

Collections API

Build

$ ./gradlew clean shadowjar
$ myiac dockerBuild --project moneycol --app collections-api --buildPath ~/development/repos/moneycol/collections --version 0.6.4 --commit b2e259

Deploy

$ myiac deploy 

## Frontend

Build

./myiac dockerBuild --project moneycol --app moneycolfrontend --buildPath ~/development/repos/moneycol/frontend --version 0.6.4 --commit b2e259

Deploy

./myiac deploy --project moneycol --env dev --app moneycolfrontend --properties image.tag=0.6.4-b2e259