From 8818c17e484c6389aa04651720bc52a8ebab5c45 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Sat, 2 Mar 2024 22:49:09 +0900 Subject: [PATCH] cicd: properly sequence build related actions --- .github/workflows/basic-sanity-ubuntu-22.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/basic-sanity-ubuntu-22.yml b/.github/workflows/basic-sanity-ubuntu-22.yml index 64c9d6b7c..a2eb30f43 100644 --- a/.github/workflows/basic-sanity-ubuntu-22.yml +++ b/.github/workflows/basic-sanity-ubuntu-22.yml @@ -1,11 +1,17 @@ name: Sanity-CI-Ubuntu-22 on: - push: - branches: - - main pull_request: branches: [ "main" ] workflow_dispatch: + inputs: + testName: + description: 'Test Run-Name' + required: true + default: 'Sanity-BuildCI-u22' + workflow_run: + workflows: ["Build-CI"] + types: + - completed jobs: build: name: basic-sanity-ubuntu-22 @@ -66,5 +72,5 @@ jobs: - name: Publish the latest loxilb Docker image if: | - github.repository == 'loxilb-io/loxilb' && github.event_name != 'pull_request' + github.repository == 'loxilb-io/loxilb' && (github.event_name == 'workflow_run' || github.event_name == 'workflow_dispatch') run: docker push ghcr.io/loxilb-io/loxilb:latestu22