[WIFI-7221] Chg: trigger-testing inputs with new services

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-04-01 12:48:25 +03:00
parent ec3b97a0d1
commit b587029ccf

View File

@@ -49,33 +49,32 @@ jobs:
SLACK_ICON: https://raw.githubusercontent.com/quintessence/slack-icons/master/images/github-logo-slack-icon.png
SLACK_TITLE: Docker build failed for OWAnalytics service
# TODO uncomment this when this service is added into docker-compose and helm deployment scripts in wlan-testing
# trigger-testing:
# if: startsWith(github.ref, 'refs/pull/')
# runs-on: ubuntu-latest
# needs: docker
# steps:
# - name: Get base branch name and set as output
# id: get_base_branch
# run: |
# echo ::set-output name=branch::$(echo ${GITHUB_BASE_REF##*/})
# echo ::set-output name=owgw_branch::$(echo ${GITHUB_BASE_REF##*/} | sed 's/main/master/g')
#
# - name: Checkout actions repo
# uses: actions/checkout@v2
# with:
# repository: Telecominfraproject/.github
# path: github
#
# - name: Trigger testing of OpenWifi Docker Compose deployment and wait for result
# uses: ./github/composite-actions/trigger-workflow-and-wait
# env:
# BASE_BRANCH: ${{ steps.get_base_branch.outputs.branch }}
# OWGW_BASE_BRANCH: ${{ steps.get_base_branch.outputs.owgw_branch }}
# with:
# owner: Telecominfraproject
# repo: wlan-testing
# workflow: ow_docker-compose.yml
# token: ${{ secrets.WLAN_TESTING_PAT }}
# ref: master
# inputs: '{"microservice": "all", "deployment_version": "${{ env.BASE_BRANCH }}", "owgw_version": "${{ env.OWGW_BASE_BRANCH }}", "owgwui_version": "${{ env.BASE_BRANCH }}", "owsec_version": "${{ env.BASE_BRANCH }}", "owfms_version": "${{ env.BASE_BRANCH }}", "owprov_version": "${{ env.BASE_BRANCH }}", "owprovui_version": "${{ env.BASE_BRANCH }}", "owanalytics_version": "${{ github.sha }}"}'
trigger-testing:
if: startsWith(github.ref, 'refs/pull/')
runs-on: ubuntu-latest
needs: docker
steps:
- name: Get base branch name and set as output
id: get_base_branch
run: |
echo ::set-output name=branch::$(echo ${GITHUB_BASE_REF##*/})
echo ::set-output name=owgw_branch::$(echo ${GITHUB_BASE_REF##*/} | sed 's/main/master/g')
- name: Checkout actions repo
uses: actions/checkout@v2
with:
repository: Telecominfraproject/.github
path: github
- name: Trigger testing of OpenWifi Docker Compose deployment and wait for result
uses: ./github/composite-actions/trigger-workflow-and-wait
env:
BASE_BRANCH: ${{ steps.get_base_branch.outputs.branch }}
OWGW_BASE_BRANCH: ${{ steps.get_base_branch.outputs.owgw_branch }}
with:
owner: Telecominfraproject
repo: wlan-testing
workflow: ow_docker-compose.yml
token: ${{ secrets.WLAN_TESTING_PAT }}
ref: master
inputs: '{"deployment_version": "${{ env.BASE_BRANCH }}", "owgw_version": "${{ env.OWGW_BASE_BRANCH }}", "owsec_version": "${{ env.BASE_BRANCH }}", "owfms_version": "${{ env.BASE_BRANCH }}", "owprov_version": "${{ env.BASE_BRANCH }}", "owanalytics_version": "${{ github.sha }}", "owsub_version": "${{ env.BASE_BRANCH }}", "microservice": "all"}'