Skip to content

chore: 馃嵃 Automatic Deployment To `stage.ocelot.social` On Push To `master` Branch

Created by: Tirokk

馃嵃 Pullrequest

Automatic deployment to stage.ocelot.social on push to (merge into) master branch.

See:

Issues

Todo

First Step

  • use kubectl or doctl to change the docker image in the deployments

Commands for branded:

kubectl -n default set image deployment/ocelot-webapp container-ocelot-webapp=ocelotsocialnetwork/webapp-branded:latest
kubectl -n default set image deployment/ocelot-backend container-ocelot-backend=ocelotsocialnetwork/backend-branded:latest
kubectl -n default set image deployment/ocelot-maintenance container-ocelot-maintenance=ocelotsocialnetwork/maintenance-branded:latest
kubectl -n default set image deployment/ocelot-neo4j container-ocelot-neo4j=ocelotsocialnetwork/neo4j-community-branded:latest

Commands for not(!) branded:

kubectl -n default set image deployment/ocelot-webapp container-ocelot-webapp=ocelotsocialnetwork/webapp:latest
kubectl -n default set image deployment/ocelot-backend container-ocelot-backend=ocelotsocialnetwork/backend:latest
kubectl -n default set image deployment/ocelot-maintenance container-ocelot-maintenance=ocelotsocialnetwork/maintenance:latest
kubectl -n default set image deployment/ocelot-neo4j container-ocelot-neo4j=ocelotsocialnetwork/neo4j-community:latest

If we really want to use the not changing tag latest then we need kubectl rollout restart deployment/* for all deployments of us in the cluster after setting the image!

Then

General

Merge request reports