Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 4 additions & 20 deletions .github/workflows/components-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ jobs:
run: |
oc login ${{ secrets.OPENSHIFT_SERVER }} --token=${{ secrets.OPENSHIFT_TOKEN }} --insecure-skip-tls-verify

- name: Delete deployments in ambient-code namespace to force re-deploy
run: |
oc delete deployment --all -n ambient-code

- name: Deploy updated components to OpenShift
run: |
oc apply -k components/manifests
Expand Down Expand Up @@ -194,23 +198,3 @@ jobs:
if: matrix.component.name == 'operator' && matrix.component.changed == 'true'
run: |
oc patch deployment agentic-operator -n ambient-code --patch "{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"vteam-operator\",\"image\":\"quay.io/ambient_code/vteam_operator:${{ github.sha }}\"}]}}}}"

rollout-changes:
runs-on: ubuntu-latest
needs: [detect-changes, build-and-push, patch-yaml, deploy-to-openshift]
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && (needs.detect-changes.outputs.frontend == 'true' || needs.detect-changes.outputs.backend == 'true' || needs.detect-changes.outputs.operator == 'true' || needs.detect-changes.outputs.claude-runner == 'true')
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Install oc
uses: redhat-actions/oc-installer@v1
with:
oc_version: 'latest'

- name: Log in to OpenShift Cluster
run: |
oc login ${{ secrets.OPENSHIFT_SERVER }} --token=${{ secrets.OPENSHIFT_TOKEN }} --insecure-skip-tls-verify

- name: force restart of pods to pick up changes
run: oc delete po --all -n ambient-code
7 changes: 4 additions & 3 deletions .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ jobs:
run: |
oc login ${{ secrets.PROD_OPENSHIFT_SERVER }} --token=${{ secrets.PROD_OPENSHIFT_TOKEN }} --insecure-skip-tls-verify

- name: Delete deployments in ambient-code namespace to force re-deploy
run: |
oc delete deployement --all -n ambient-code

- name: Deploy updated components to OpenShift
run: |
oc apply -k components/manifests
Expand All @@ -253,6 +257,3 @@ jobs:
- name: Update operator if changed
run: |
oc patch deployment agentic-operator -n ambient-code --patch "{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"vteam-operator\",\"image\":\"quay.io/ambient_code/vteam_operator:${{ needs.release.outputs.new_tag }}\"}]}}}}"

- name: force restart of pods to pick up changes
run: oc delete po --all -n ambient-code
Loading