Skip to content

Deploy Alpha to Alpha-Test #16

Deploy Alpha to Alpha-Test

Deploy Alpha to Alpha-Test #16

name: Deploy Alpha to Alpha-Test
on: workflow_dispatch
env:
TOOLS_NAMESPACE: ${{ vars.OPENSHIFT_LICENSE_PLATE }}-tools
ENVIRONMENT: test
NAMESPACE: ${{ vars.OPENSHIFT_LICENSE_PLATE }}-test
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- name: Install OpenShift CLI tools
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.14"
- name: Login OpenShift
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ vars.OPENSHIFT_SERVER_URL }}
openshift_token: ${{ secrets.OPENSHIFT_SERVICE_TOKEN }}
- name: Tag Alpha Test images
run: |
oc -n ${{ env.TOOLS_NAMESPACE }} tag frontend-alpha:latest frontend-alpha:${{ env.ENVIRONMENT }}
oc -n ${{ env.TOOLS_NAMESPACE }} tag backend-alpha:latest backend-alpha:${{ env.ENVIRONMENT }}
- name: Trigger new rollout
run: |
oc -n ${{ env.NAMESPACE }} rollout restart deployment alpha-frontend
oc -n ${{ env.NAMESPACE }} rollout restart deployment alpha-backend