mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 12:27:53 +00:00
[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:
@@ -1,4 +1,4 @@
|
|||||||
name: Restart OWGW on QA
|
name: Restart OWGW
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -13,8 +13,12 @@ env:
|
|||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_KEY }}
|
||||||
|
|
||||||
on:
|
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:
|
jobs:
|
||||||
restart-owgw:
|
restart-owgw:
|
||||||
@@ -29,5 +33,5 @@ jobs:
|
|||||||
curl -LO "https://dl.k8s.io/release/v1.23.6/bin/linux/amd64/kubectl"
|
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
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
- name: Restart OWGW in QA01
|
- name: Restart OWGW in defined namespace
|
||||||
run: kubectl delete pod -n openwifi-qa01 -l app.kubernetes.io/name=owgw
|
run: kubectl delete pod -n openwifi-${{ github.event.inputs.environment }} -l app.kubernetes.io/name=owgw
|
||||||
Reference in New Issue
Block a user