mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 19:37:54 +00:00
WIFI-13821 rework gh CGW deploy action-6
Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
30
.github/workflows/cgw-dev-deployment.yaml
vendored
30
.github/workflows/cgw-dev-deployment.yaml
vendored
@@ -125,31 +125,27 @@ jobs:
|
|||||||
- name: Create certificate file
|
- name: Create certificate file
|
||||||
working-directory: wlan-cloud-ucentral-deploy/cgw
|
working-directory: wlan-cloud-ucentral-deploy/cgw
|
||||||
run: |
|
run: |
|
||||||
echo "${{ env.DIGICERT_CERT }}" | base64 -d > websocket-cert.pem
|
echo "${{ secrets.DIGICERT_CERT }}" | base64 -d > websocket-cert.pem
|
||||||
echo "${{ env.DIGICERT_KEY }}" | base64 -d > websocket-key.pem
|
echo "${{ secrets.DIGICERT_KEY }}" | base64 -d > websocket-key.pem
|
||||||
./mkcertconfig websocket-cert.pem websocket-key.pem > values/certs.device.yaml
|
./mkcertconfig websocket-cert.pem websocket-key.pem > values/certs.device.yaml
|
||||||
kubectl create secret generic certs --dry-run=client -o yaml \
|
kubectl create secret generic certs --dry-run=client -o yaml \
|
||||||
--from-file=websocket-key.pem --from-file=websocket-cert.pem \
|
--from-file=websocket-key.pem --from-file=websocket-cert.pem \
|
||||||
| grep websocket- >> values/certs.device.yaml
|
| grep websocket- >> values/certs.device.yaml
|
||||||
|
|
||||||
- name: Deploy OpenLAN Cloud Gateway and services
|
- name: Deploy OpenLAN Cloud Gateway
|
||||||
if: ${{ github.event.inputs.upgrade }} == "false"
|
|
||||||
working-directory: wlan-cloud-ucentral-deploy/cgw
|
working-directory: wlan-cloud-ucentral-deploy/cgw
|
||||||
run: |
|
run: |
|
||||||
helm ls -n ${{ github.event.inputs.namespace }}
|
helm ls -n ${{ github.event.inputs.namespace }}
|
||||||
echo "If already installed then it may not be possible to upgrade service components"
|
if [[ "${{ github.event.inputs.upgrade }}" == "false" ]] ; then
|
||||||
helmfile --environment ${{ github.event.inputs.config_name }} \
|
echo "If already installed then it may not be possible to upgrade service components"
|
||||||
--state-values-set "cgw.tag=${{ github.event.inputs.cgw_image }}" \
|
helmfile --environment ${{ github.event.inputs.config_name }} \
|
||||||
apply
|
--state-values-set "cgw.tag=${{ github.event.inputs.cgw_image }}" \
|
||||||
|
apply
|
||||||
- name: Deploy OpenLAN Cloud Gateway only
|
else
|
||||||
if: ${{ github.event.inputs.upgrade }} == "true"
|
helmfile --environment ${{ github.event.inputs.config_name }} -l app=cgw \
|
||||||
working-directory: wlan-cloud-ucentral-deploy/cgw
|
--state-values-set "cgw.tag=${{ github.event.inputs.cgw_image }}" \
|
||||||
run: |
|
apply
|
||||||
helm ls -n ${{ github.event.inputs.namespace }}
|
fi
|
||||||
helmfile --environment ${{ github.event.inputs.config_name }} -l app=cgw \
|
|
||||||
--state-values-set "cgw.tag=${{ github.event.inputs.cgw_image }}" \
|
|
||||||
apply
|
|
||||||
|
|
||||||
- name: Show resource state on deployment failure
|
- name: Show resource state on deployment failure
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|||||||
Reference in New Issue
Block a user