From bc15b3ee4c9b5d53fe029c06b78eb5250b0233b4 Mon Sep 17 00:00:00 2001 From: Craig Russell Date: Wed, 21 Feb 2024 10:07:18 +0000 Subject: [PATCH] trying to automate the build --- .github/workflows/build_workflow.yml | 18 ++++++++++++++++++ .github/workflows/release.yml | 20 ++++---------------- 2 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/build_workflow.yml diff --git a/.github/workflows/build_workflow.yml b/.github/workflows/build_workflow.yml new file mode 100644 index 0000000..eb68b99 --- /dev/null +++ b/.github/workflows/build_workflow.yml @@ -0,0 +1,18 @@ +name: Build Workflow + +on: + workflow_call: + +jobs: + trigger-builds: + runs-on: ubuntu-latest + strategy: + matrix: + baseImage: ['nvcr.io/nvidia/tritonserver'] + baseTag: ['23.08'] + steps: + - name: Trigger Manually Triggered Build and Push Workflow + uses: ./.github/workflows/build.yml # Ensure this references the correct path and branch + with: + baseImage: ${{ matrix.baseImage }} + baseTag: ${{ matrix.baseTag }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 458b0ad..277c715 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,20 +1,8 @@ -name: Release Workflow - +name: release on: push: branches: - - main # Adjust this to match your release branch or triggering condition - + - "*" jobs: - trigger-builds: - runs-on: ubuntu-latest - strategy: - matrix: - baseImage: ['nvcr.io/nvidia/tritonserver'] - baseTag: ['23.08'] - steps: - - name: Trigger Manually Triggered Build and Push Workflow - uses: ./.github/workflows/build.yml # Ensure this references the correct path and branch - with: - baseImage: ${{ matrix.baseImage }} - baseTag: ${{ matrix.baseTag }} + build: + uses: ./.github/workflows/build_workflow.yml