Skip to content

Commit 3db7db1

Browse files
authored
ci: rename Images to Publish & Deploy, add self-hosted deploy job (#103)
* ci: rename Images workflow to Publish & Deploy, add self-hosted deploy job After images are published and the Helm chart is pushed to OCI, a new deploy job runs on a self-hosted runner inside the OpenShift cluster to helm upgrade --install the release into the humr namespace. Signed-off-by: Tomas Pilar <thomas7pilar@gmail.com> * ci: use kubectl rollout restart instead of helm for deploy job Simpler approach — restart all deployments and statefulsets in the humr namespace so they pick up the newly published images, then wait for rollout completion. Signed-off-by: Tomas Pilar <thomas7pilar@gmail.com> --------- Signed-off-by: Tomas Pilar <thomas7pilar@gmail.com>
1 parent 1a5ac89 commit 3db7db1

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Images
1+
name: Publish & Deploy
22

33
on:
44
push:
@@ -117,3 +117,16 @@ jobs:
117117
run: helm package deploy/helm/humr --version ${{ steps.version.outputs.version }} --app-version ${{ steps.version.outputs.version }}
118118
- name: Push to OCI registry
119119
run: helm push humr-${{ steps.version.outputs.version }}.tgz oci://ghcr.io/kagenti/humr/charts
120+
121+
deploy:
122+
runs-on: self-hosted
123+
timeout-minutes: 10
124+
needs: helm-package
125+
if: startsWith(github.ref, 'refs/tags/v')
126+
steps:
127+
- name: Rollout restart
128+
run: kubectl rollout restart statefulset,deployment --namespace humr
129+
- name: Wait for rollout
130+
run: |
131+
kubectl rollout status statefulset --namespace humr --timeout=5m
132+
kubectl rollout status deployment --namespace humr --timeout=5m

0 commit comments

Comments
 (0)