Having created the container, we now need to deploy it to the Google cloud. We create a deploy project. This was created for me, I believe from our Boilerplate Google Cloud Deployment project This project can currently only be viewed from within the University. The gitlab-ci.yml contained the following at the time of writing:
|
|
What it does is to take the deploy template from the devops CI templates in
the University GitLab (This is publicly viewable as I write this) and use them to
deploy using some environment
variables to control what is being deployed. We can see the in the deploy.yml
the CI is instructed to do a docker pull
on the container that we built, tag it with the Google container name, then
push it to the Google cloud.
There is another entry for staging, but first let’s understand development.