[WIFI-11274] Chg: restart OWGW workflow to allow passing other envs (#728)

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-10-25 16:05:39 +03:00
committed by GitHub
parent d314bf6334
commit 55dfb452c8

View File

@@ -1,4 +1,4 @@
name: Restart OWGW on QA
name: Restart OWGW
defaults:
run:
@@ -13,8 +13,12 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_KEY }}
on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
environment:
default: 'qa01'
description: 'In which environment OWGW must be restarted (qa01 will restart OWGW in openwifi-qa01)'
required: true
jobs:
restart-owgw:
@@ -29,5 +33,5 @@ jobs:
curl -LO "https://dl.k8s.io/release/v1.23.6/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- name: Restart OWGW in QA01
run: kubectl delete pod -n openwifi-qa01 -l app.kubernetes.io/name=owgw
- name: Restart OWGW in defined namespace
run: kubectl delete pod -n openwifi-${{ github.event.inputs.environment }} -l app.kubernetes.io/name=owgw