-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 1.05 KB
/
deploy-alpha-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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