From 9afee0eaae3198da696eb2b3679df3d632dec3f9 Mon Sep 17 00:00:00 2001 From: Brian Fjeldstad Date: Fri, 19 Mar 2021 08:14:59 -0700 Subject: [PATCH 1/2] fix artifact name [SAME VERSION] --- .github/workflows/build-agent-container.yml | 4 ++-- .github/workflows/build-controller-container.yml | 4 ++-- .github/workflows/build-udev-video-broker-container.yml | 4 ++-- .github/workflows/build-webhook-configuration-container.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-agent-container.yml b/.github/workflows/build-agent-container.yml index d3e0f5f61..c2ccd636d 100644 --- a/.github/workflows/build-agent-container.yml +++ b/.github/workflows/build-agent-container.yml @@ -44,12 +44,12 @@ jobs: workflow: ${{ github.event.workflow_run.workflow_id }} workflow_conclusion: success commit: ${{ github.event.workflow_run.head_sha }} - name: rust-${{ matrix.arch.label }}-binaries + name: rust-${{ matrix.arch }}-binaries path: /tmp - name: Unpack Rust binaries run: | - tar -xvf /tmp/rust-${{ matrix.arch.label }}-binaries.tar + tar -xvf /tmp/rust-${{ matrix.arch }}-binaries.tar - name: Run Per-Arch component build for ${{ env.AKRI_COMPONENT }} uses: ./.github/actions/build-component-per-arch diff --git a/.github/workflows/build-controller-container.yml b/.github/workflows/build-controller-container.yml index a1c93c1cf..17a4d86d4 100644 --- a/.github/workflows/build-controller-container.yml +++ b/.github/workflows/build-controller-container.yml @@ -43,12 +43,12 @@ jobs: workflow: ${{ github.event.workflow_run.workflow_id }} workflow_conclusion: success commit: ${{ github.event.workflow_run.head_sha }} - name: rust-${{ matrix.arch.label }}-binaries + name: rust-${{ matrix.arch }}-binaries path: /tmp - name: Unpack Rust binaries run: | - tar -xvf /tmp/rust-${{ matrix.arch.label }}-binaries.tar + tar -xvf /tmp/rust-${{ matrix.arch }}-binaries.tar - name: Run Per-Arch component build for ${{ env.AKRI_COMPONENT }} uses: ./.github/actions/build-component-per-arch diff --git a/.github/workflows/build-udev-video-broker-container.yml b/.github/workflows/build-udev-video-broker-container.yml index d8ad1004b..f45e2d1db 100644 --- a/.github/workflows/build-udev-video-broker-container.yml +++ b/.github/workflows/build-udev-video-broker-container.yml @@ -44,12 +44,12 @@ jobs: workflow: ${{ github.event.workflow_run.workflow_id }} workflow_conclusion: success commit: ${{ github.event.workflow_run.head_sha }} - name: rust-${{ matrix.arch.label }}-binaries + name: rust-${{ matrix.arch }}-binaries path: /tmp - name: Unpack Rust binaries run: | - tar -xvf /tmp/rust-${{ matrix.arch.label }}-binaries.tar + tar -xvf /tmp/rust-${{ matrix.arch }}-binaries.tar - name: Run Per-Arch component build for ${{ env.AKRI_COMPONENT }} uses: ./.github/actions/build-component-per-arch diff --git a/.github/workflows/build-webhook-configuration-container.yml b/.github/workflows/build-webhook-configuration-container.yml index c26781880..7f2b3ecda 100644 --- a/.github/workflows/build-webhook-configuration-container.yml +++ b/.github/workflows/build-webhook-configuration-container.yml @@ -43,12 +43,12 @@ jobs: workflow: ${{ github.event.workflow_run.workflow_id }} workflow_conclusion: success commit: ${{ github.event.workflow_run.head_sha }} - name: rust-${{ matrix.arch.label }}-binaries + name: rust-${{ matrix.arch }}-binaries path: /tmp - name: Unpack Rust binaries run: | - tar -xvf /tmp/rust-${{ matrix.arch.label }}-binaries.tar + tar -xvf /tmp/rust-${{ matrix.arch }}-binaries.tar - name: Run Per-Arch component build for ${{ env.AKRI_COMPONENT }} uses: ./.github/actions/build-component-per-arch From 0d0af006e0d7b5c12fb1435671bb3f15b7ce0802 Mon Sep 17 00:00:00 2001 From: Brian Fjeldstad Date: Fri, 19 Mar 2021 08:55:52 -0700 Subject: [PATCH 2/2] only run for main --- .github/workflows/build-agent-container.yml | 1 + .github/workflows/build-controller-container.yml | 1 + .github/workflows/build-udev-video-broker-container.yml | 1 + .github/workflows/build-webhook-configuration-container.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/build-agent-container.yml b/.github/workflows/build-agent-container.yml index c2ccd636d..b8fff3c00 100644 --- a/.github/workflows/build-agent-container.yml +++ b/.github/workflows/build-agent-container.yml @@ -3,6 +3,7 @@ name: Build Agent on: workflow_run: workflows: ["Build Production Rust Code"] + branches: [main] types: - completed diff --git a/.github/workflows/build-controller-container.yml b/.github/workflows/build-controller-container.yml index 17a4d86d4..8c512f252 100644 --- a/.github/workflows/build-controller-container.yml +++ b/.github/workflows/build-controller-container.yml @@ -3,6 +3,7 @@ name: Build Controller on: workflow_run: workflows: ["Build Production Rust Code"] + branches: [main] types: - completed diff --git a/.github/workflows/build-udev-video-broker-container.yml b/.github/workflows/build-udev-video-broker-container.yml index f45e2d1db..7d610124f 100644 --- a/.github/workflows/build-udev-video-broker-container.yml +++ b/.github/workflows/build-udev-video-broker-container.yml @@ -3,6 +3,7 @@ name: Build UDEV Broker on: workflow_run: workflows: ["Build Production Rust Code"] + branches: [main] types: - completed diff --git a/.github/workflows/build-webhook-configuration-container.yml b/.github/workflows/build-webhook-configuration-container.yml index 7f2b3ecda..9704a8908 100644 --- a/.github/workflows/build-webhook-configuration-container.yml +++ b/.github/workflows/build-webhook-configuration-container.yml @@ -3,6 +3,7 @@ name: Build Webhook Configuration on: workflow_run: workflows: ["Build Production Rust Code"] + branches: [main] types: - completed