-
Notifications
You must be signed in to change notification settings - Fork 1
Description
We now have a running skaffold.yaml that builds the docker image, can publish them to a container registry and deploy the container to a kubernetes cluster.
We want to bring this into the CI to build and deploy the "staging" version of the website into our kubernetes cluster. Its not clear yet what to do with the production version as readthedocs
gives their own hosting platform and we have already reserved our name in it and running the older sphinx based website on it.
But apart from that, it would be useful to quickly see the semifinal version online before deploying it. The subdomain staging.hololinked.dev
(https://docs.staging.hololinked.dev) is to be used for this. The purpose of this issue is to be able to build and deploy the images to be available there.
Rough steps:
- Have two jobs in the CI, one for building (automatic) and one for deploying (manual trigger) , both have to run using skaffold commands. Export a skaffold.env with
SKAFFOLD_DEFAULT_REPO
pointing toghcr
and have an access token available that can push intoghcr
. - Export skaffold build state JSON file after building and import it into deploy job. Docker build target must be the "prod" target.
- Deploy the staging website by logging into the kubernetes cluster using build state (< ask for access>)