Make sure to skip prepare

This commit is contained in:
Owen
2026-03-07 10:36:18 -08:00
committed by Owen Schwartz
parent a85454e770
commit 392e4c83bf

View File

@@ -136,7 +136,7 @@ jobs:
build-amd: build-amd:
name: Build image (linux/amd64) name: Build image (linux/amd64)
needs: [pre-run, prepare] needs: [pre-run, prepare]
if: ${{ needs.pre-run.result == 'success' && ((github.event_name == 'push' && github.actor != 'github-actions[bot]') || (github.event_name == 'workflow_dispatch' && needs.prepare.result == 'success')) }} if: ${{ needs.pre-run.result == 'success' && ((github.event_name == 'push' && github.actor != 'github-actions[bot]') || (github.event_name == 'workflow_dispatch' && (needs.prepare.result == 'success' || needs.prepare.result == 'skipped'))) }}
runs-on: [self-hosted, linux, x64] runs-on: [self-hosted, linux, x64]
timeout-minutes: 120 timeout-minutes: 120
env: env:
@@ -293,7 +293,7 @@ jobs:
build-arm: build-arm:
name: Build image (linux/arm64) name: Build image (linux/arm64)
needs: [pre-run, prepare] needs: [pre-run, prepare]
if: ${{ needs.pre-run.result == 'success' && ((github.event_name == 'push' && github.actor != 'github-actions[bot]') || (github.event_name == 'workflow_dispatch' && needs.prepare.result == 'success')) }} if: ${{ needs.pre-run.result == 'success' && ((github.event_name == 'push' && github.actor != 'github-actions[bot]') || (github.event_name == 'workflow_dispatch' && (needs.prepare.result == 'success' || needs.prepare.result == 'skipped'))) }}
runs-on: [self-hosted, linux, arm64] # NOTE: ensure label exists on runner runs-on: [self-hosted, linux, arm64] # NOTE: ensure label exists on runner
timeout-minutes: 120 timeout-minutes: 120
env: env:
@@ -417,7 +417,7 @@ jobs:
build-armv7: build-armv7:
name: Build image (linux/arm/v7) name: Build image (linux/arm/v7)
needs: [pre-run, prepare] needs: [pre-run, prepare]
if: ${{ needs.pre-run.result == 'success' && ((github.event_name == 'push' && github.actor != 'github-actions[bot]') || (github.event_name == 'workflow_dispatch' && needs.prepare.result == 'success')) }} if: ${{ needs.pre-run.result == 'success' && ((github.event_name == 'push' && github.actor != 'github-actions[bot]') || (github.event_name == 'workflow_dispatch' && (needs.prepare.result == 'success' || needs.prepare.result == 'skipped'))) }}
runs-on: [self-hosted, linux, arm64] runs-on: [self-hosted, linux, arm64]
timeout-minutes: 120 timeout-minutes: 120
env: env:
@@ -919,7 +919,7 @@ jobs:
- name: Configure AWS credentials (OIDC) - name: Configure AWS credentials (OIDC)
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0 uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
with: with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ROLE_NAME }}
role-duration-seconds: 3600 role-duration-seconds: 3600
aws-region: ${{ secrets.AWS_REGION }} aws-region: ${{ secrets.AWS_REGION }}