Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions .github/workflows/promote-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
workflow_run:
workflows: [SkillEvaluator release published]
types: [completed]
workflow_call:
inputs:
expected-release:
type: string
required: true
secrets:
STABLE_CHANNEL_APP_PRIVATE_KEY:
required: true
workflow_dispatch:
inputs:
expected-release:
Expand All @@ -16,25 +24,28 @@ on:
type: string
required: false

concurrency:
group: skillevaluator-stable
cancel-in-progress: false
queue: max

permissions: {}

jobs:
promote:
# Accept only the relay's release event for automatic promotion.
# Reusable workflows use the caller's workflow identity.
if: >-
github.repository == 'NVIDIA/SkillEvaluator' &&
github.ref == 'refs/heads/main' &&
(github.event_name == 'workflow_dispatch' ||
(github.event.workflow_run.event == 'release' &&
((github.event_name == 'workflow_dispatch' &&
(github.workflow_ref == 'NVIDIA/SkillEvaluator/.github/workflows/promote-stable.yml@refs/heads/main' ||
github.workflow_ref == 'NVIDIA/SkillEvaluator/.github/workflows/release.yml@refs/heads/main')) ||
(github.event_name == 'workflow_run' &&
github.workflow_ref == 'NVIDIA/SkillEvaluator/.github/workflows/promote-stable.yml@refs/heads/main' &&
github.event.workflow_run.event == 'release' &&
github.event.workflow_run.conclusion == 'success'))
runs-on: ubuntu-24.04
timeout-minutes: 10
environment: stable-channel
concurrency:
group: skillevaluator-stable
cancel-in-progress: false
queue: max
permissions:
contents: read
steps:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release-tier1-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ on:
bundle_artifact:
description: Artifact containing the bundle and packaged descriptors
value: ${{ jobs.onboarding.outputs.bundle_artifact }}
bundle_artifact_id:
description: Numeric artifact ID for the exact generated bundle
value: ${{ jobs.onboarding.outputs.bundle_artifact_id }}
bundle_artifact_digest:
description: SHA-256 digest of the generated bundle artifact archive
value: ${{ jobs.onboarding.outputs.bundle_artifact_digest }}

permissions: {}

Expand Down Expand Up @@ -132,6 +138,8 @@ jobs:
outputs:
image_digest: ${{ needs.publish.outputs.image_digest }}
bundle_artifact: ${{ steps.bundle.outputs.artifact }}
bundle_artifact_id: ${{ steps.retained.outputs.artifact-id }}
bundle_artifact_digest: ${{ steps.retained.outputs.artifact-digest }}
env:
VERSION: ${{ inputs.version }}
SOURCE_SHA: ${{ inputs.source_sha }}
Expand Down Expand Up @@ -168,6 +176,7 @@ jobs:
path: ${{ runner.temp }}/public-image-verification
retention-days: 30
- name: Upload pinned bundle and consumers
id: retained
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ci-bundle-${{ inputs.version }}
Expand Down
Loading
Loading