API ¶
The civic-tech-taxonomy‘s api-server tool is deployed on this cluster at https://api.taxonomy.sandbox.k8s.brigade.cloud
Deployment ¶
- Merge or push new commits into the
masterbranch in thecivic-tech-taxonomyrepository - After pushing to the
masterbranch, you should see thepublish-api-serverGitHub Action running or already complete under the Actions tab - Once the action finishes, you should be able to confirm that a new tag has been push for the
api-servercontainer image matching the SHA of your latest commit to themasterbranch that it was built from -
In the
nac-sandbox-clusterrepository, edit the filecivic-tech-taxonomy/api-server.yamlwhich declares the deployment for theapi-serverinstance hosted on the cluster-
Find the line specifying the container image path+tag:
image: ghcr.io/codeforamerica/civic-tech-taxonomy/api-server:abcdef1 -
Change the tag portion of the line to match the hash for the one that was just built
- Commit your change directly to the
mainbranch on the cluster repository if you have access, otherwise open a pull request and ask a cluster administrator to merge it for you. No change will actually get applied to the cluster at this point
-
-
After the
imagevalue has been updated in themainbranch in thenac-sandbox-clusterrepository, that repository’sprepare-k8s-manifestsaction will prepare an automated PR for deploying the change to the cluster. Review that PR and ask a cluster administrator to merge it for you. - Once the deploy PR is merged, the new version should be online within a few minutes. The deploy process can be monitored via the
deploy-k8s-manifestsworkflow under the Actions tab. After that workflow completes, the new version has been applied to the cluster but the cluster then has to download the new container image and restart the deployment.